3 Replies Latest reply on Jan 15, 2007 12:08 PM by spambob

    Recursive facelets

    dilator

      Has anyone got recursive facelets working, either using ui:include or a custom tag?

      I have something like this:

      <ui:repeat var="c" value="#{collection}">
       <custom:tag component="#{c}" />
      </ui:repeat>
      


      Custom tag:

      <ui:composition>
       <h:outputText value="#{component.name}" />
      
       <ui:repeat var="c" value="#{component.children}">
       <custom:tag component="#{c}" />
       </ui:repeat>
      </ui:composition>


      I get a big fat stack overflow. Scoping (lack of?) issue?

      Thanks - ben