[jboss-user] [JBoss Seam] - Re: Nested ui:repeat fails
susnet
do-not-reply at jboss.com
Sun Oct 28 19:22:46 EDT 2007
I found out the problem why it did not work using tomahawk dataList for me. The problem was that i use JBoss 4.2 in my new seam project and then you also have to include the commons-el.jar to your webapp lib.
Here is a complete tutorial on how to use tomahawk dataList in a Seam project on JBoss 4.2:
1. Add tomahawk.jar to your webapp lib.
2. Add commons-el.jar to your webapp lib.
3. Take the following code and put it into a file and name it tomahawk.taglib.xml and put this file directly under your WEB-INF directory.
| <?xml version="1.0" encoding="UTF-8"?>
| <!DOCTYPE facelet-taglib PUBLIC
| "-//Sun Microsystems, Inc.//DTD Facelet Taglib 1.0//EN"
| "http://java.sun.com/dtd/facelet-taglib_1_0.dtd">
|
| <facelet-taglib>
| <namespace>http://myfaces.apache.org/tomahawk</namespace>
|
| <tag>
| <tag-name>dataList</tag-name>
| <component>
| <component-type>org.apache.myfaces.HtmlDataList</component-type>
| <renderer-type>org.apache.myfaces.List</renderer-type>
| </component>
| </tag>
| </facelet-taglib>
|
4. Put the following code in your web.xml
| <context-param>
| <param-name>facelets.LIBRARIES</param-name>
| <param-value>/WEB-INF/tomahawk.taglib.xml</param-value>
| </context-param>
|
5. In those xhtml files you want to use tomahawk dataList add
xmlns:t="http://myfaces.apache.org/tomahawk"
and then just use the dataList for example like this:
| <t:dataList value="#{allCategories.resultList}" var="cat">
| <p>#{cat.name}</p>
| </t:dataList>
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4099696#4099696
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4099696
More information about the jboss-user
mailing list