[jboss-user] [JBoss Tools (users)] - VPE facelets ui:composition
mwr0707
do-not-reply at jboss.com
Sun Jan 4 09:50:44 EST 2009
>From the Facelets UI Tag Reference:
anonymous wrote : The UI Composition tag is a templating tag that wraps content to be included in another Facelet. Any content outside of the UI Composition tag will be ignored by the Facelets view handler. Any content inside of the UI Composition tag will be included when another Facelets page includes the page containing this UI Composition tag. See also ui:include.
In VPE, content outside of the ui:composition tag is getting included.
For example:
<ui:composition template="template.xhtml">
| <ui:define name="navigation">
| <ui:include src="menu.xhtml"/>
| </ui:define>
| </ui:composition>
The relevant parts of menu.xhtml are:
<body>
| This text should be ignored
|
| <ui:composition>
|
| <h3>Contents table</h3>
| <hr/>
| </ui:composition>
| </body>
At runtime "This text should be ignored" does not appear. It shows up in VPE.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4199408#4199408
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4199408
More information about the jboss-user
mailing list