2 Replies Latest reply on Dec 14, 2006 3:02 AM by Richard Leherpeur

    Using <ui:include> with page action

    Richard Leherpeur Novice


      I'm using the facelets library composition tag and came up with the following need:

      <ui:composition xmlns="http://www.w3.org/1999/xhtml"
      <ui:define name="header">
      <ui:include src="/header.seam">
       <ui:param name="type" value="light"/>

      Where /header.xhtml is defines in pages.xhtml as

      <page view-id="/header.xhtml" action="#{headerMapper.path}" />

      The headerMapper SLSB basically would return an outcome depending on the passed parameter.

      This doesn't work as the <ui:include> tag expects a real path and the action bean is never called.
      So I think it would be nice to have a similar tag in the seam library that would integrate with seam features (expecially the pages.xml).

      I solved the issue by using the tag "properly" but I still think the idea I described would be nice.

      If you guys think this makes senses, that could be added to a list of features. I might even try implement it when I get more time.