[jboss-user] [JBoss Seam] - Re: JSF Composition Components with Seam
fernando_jmt
do-not-reply at jboss.com
Wed May 16 09:32:19 EDT 2007
I have this in my web.xml:
| <context-param>
| <param-name>facelets.LIBRARIES</param-name>
| <param-value>
| /WEB-INF/facelets/myapp.taglib.xml
| </param-value>
| </context-param>
|
myapp.taglib.xml
| <?xml version="1.0"?>
| <!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://my.com/jsf/</namespace>
| <tag>
| <tag-name>dataScroller</tag-name>
| <source>tags/dataScroller.xhtml</source>
| </tag>
| </facelet-taglib>
|
And in the dataScroller.xhtml is located: WEB-INF/facelets/tags/dataScroller.xhtml
Then in my page (located anywhere) I have:
| <ui:composition xmlns="http://www.w3.org/1999/xhtml"
| xmlns:s="http://jboss.com/products/seam/taglib"
| xmlns:ui="http://java.sun.com/jsf/facelets"
| xmlns:f="http://java.sun.com/jsf/core"
| xmlns:h="http://java.sun.com/jsf/html"
| xmlns:a4j="https://ajax4jsf.dev.java.net/ajax"
| xmlns:rich="http://richfaces.ajax4jsf.org/rich"
| xmlns:app="http://my.com/jsf"
| template="/layout/template.xhtml">
|
| ....
| <app:dataScroller dataTableId="userListId"/>
|
| ....
|
| </ui:composition>
|
|
And all is working OK.
HTH.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4046135#4046135
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4046135
More information about the jboss-user
mailing list