0 Replies Latest reply on Oct 4, 2007 11:23 AM by J S

    rich:tree not working in a4j:repeat

    J S Newbie

      I'm trying to use a rich:tree in a a4j:repeat, but it isn't working:

       <h3>Tree</h3>
       <t:htmlTag value="div" styleClass="itemTreeWrap"
       style="height: 400px; overflow: auto; float: left; border-width: 1px;">
       <rich:tree id="itemTree" style="width:300px" switchType="ajax"
       nodeSelectListener="#{itemTreeXX.selected}"
       changeExpandListener="#{itemTreeXX.expansion}"
       stateAdvisor="#{itemTreeXX.advisor}">
       <rich:recursiveTreeNodesAdaptor roots="#{itemTreeXX.sourceRoots}"
       var="item" nodes="#{item.nodes}" />
       </rich:tree>
       </t:htmlTag>
       <div class="clear" />
       <h3>Trees</h3>
       <a4j:outputPanel id="itemTreePanel">
       <a4j:repeat value="#{navigator.trees}" var="itemTree">
       <t:htmlTag value="div" styleClass="itemTreeWrap"
       style="height: 400px; overflow: auto; float: left; border-width: 1px;">
       <rich:tree id="itemTree" style="width:300px" switchType="ajax"
       nodeSelectListener="#{itemTree.selected}"
       changeExpandListener="#{itemTree.expansion}"
       stateAdvisor="#{itemTree.advisor}">
       <rich:recursiveTreeNodesAdaptor roots="#{itemTree.sourceRoots}"
       var="item" nodes="#{item.nodes}" />
       </rich:tree>
       </t:htmlTag>
       </a4j:repeat>
       </a4j:outputPanel>
      


      itemTreeXX is a managed bean, navigator.trees is a list of beans of the same type as itemTreeXX.

      The first tree works, in that I can expand the nodes and select them. The trees in the a4j:repeat don't expand, and I can't select them.

      I'm using facelets and myfaces 1.1.5. I've tried richafaces 3.1.0 and the latest 3.1.1 snapshot.

      Thanks

      John