aspose file tools*
The moose likes JSF and the fly likes My Faces Tomahawk tags not rendering in XHTML Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "My Faces Tomahawk tags not rendering in XHTML" Watch "My Faces Tomahawk tags not rendering in XHTML" New topic
Author

My Faces Tomahawk tags not rendering in XHTML

J.C. Bustamante
Greenhorn

Joined: Jul 20, 2009
Posts: 22
Hi,

I am trying to run an application using Spring Webflow + JSF (My Faces Tomahawk), and I am able to successfully deploy the application on Tomcat 6 through eclipse. However, when I try to hit the flow, the page is not rendering properly. When I do a view source on the page, I noticed that the tomahawk tags haven't been translated into html. The following is my XHTML code.

itemList.xhtml



The following is my web.xml



Any help would be very much appreciated.

Thanks,

Juan
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16228
    
  21

I've had this problem as well. I think some of the tags in Tomahawk don't really exist. So they don't get processed, because the standard for HTML is any tag that's not understood gets passed through verbatim. My workaround has been to use non-Tomahawk equivalents.


Customer surveys are for companies who didn't pay proper attention to begin with.
J.C. Bustamante
Greenhorn

Joined: Jul 20, 2009
Posts: 22
I figured out the issue. Apparently I was using Tomahawk 1.15 which requires that you install the tomahawk taglib into your web application and define the location of the taglib in the web.xml through the faces.LIBRARIES param. However, if you use tomahawk 1.17 and greater, you do not require this.

Cheers,

Juan
Lisa Lang
Greenhorn

Joined: Oct 13, 2004
Posts: 2
I see the comment about setting myfaces.LIBRARIES in the web.xml file, but can you post an example? I tried adding:

<context-param>
<description>
</description>
<param-name>javax.faces.myfaces.LIBRARIES</param-name>
<param-value>/WEB-INF/tomahawk.tld</param-value>
</context-param>

(I also tried using org.apache.myfaces.LIBRARIES but that also didn't work)

Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16228
    
  21

In ancient times, the TLD was an external file that had to be supplied independently of the JSP tag classes. Nowadays it can be stored in the same JAR that the classes are stored in, which virtually eliminates the need for a web.xml entry, makes installation a simple matter of copying the taglib jar into WEB-INF/lib, and as a side benefits, keeps the TLD and classes in sync.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: My Faces Tomahawk tags not rendering in XHTML