• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

tomahawk not working with JSF 1.2 and Facelets

 
Ranch Hand
Posts: 41
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,

I need help in fixing the error below when i add tomahawk1.1.10 to my project which uses JSF 1.2 and facelets and tomcat 6.0.

* Warning: This page calls for XML namespace http://myfaces.apache.org/tomahawk declared with prefix t but no taglibrary exists for that namespace.

I have this xhtml with whe tomahawk tag added as below

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:t="http://myfaces.apache.org/tomahawk">

please let me know if i need to add any other jars to make tomahawk work or any other thing which iam missing.

Thank you for your help in advance
 
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please make sure you have the TLD files in your tomahawk jars. Sometime these jars may not have these TLDs at all. You may have to download the correct version
 
Ranch Hand
Posts: 199
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I do not know how do you do it with JSF 1 but with JSF 2 I have this in web.xml file
and naturally I have the file mentioned in that location too.
 
Saloon Keeper
Posts: 27752
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If you're using Facelets, the TLD gets more or less ignored, but there's a facelets adapter XML file that you need. You can copy and paste it from the MyFaces website, where they explain it (more or less decently).

Also, of course, do make sure you have the right version of Tomahawk. MyFaces broke into 2 different distributions depending on what version of JSF you're working with.
 
vishnu bola
Ranch Hand
Posts: 41
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi all,

Thank you for all your valuable responses. I solved this issue by adding extension filter in my web.xml and it worked like a charm



Thank you once again
 
Ilari Moilanen
Ranch Hand
Posts: 199
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Why would you post a totally unrelated question to a topic that is THREE (almost four) years old? How can you possibly expect someone to answer you?
 
We're all out of roofs. But we still have tiny ads:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic