12 Replies Latest reply on Jan 6, 2009 9:43 AM by sdzmitrovich

    VPE facelets ui:composition

    mwr0707

      From the Facelets UI Tag Reference:

      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.