6 Replies Latest reply on Mar 29, 2011 11:21 AM by Dosi Bingov

    Migration of recursiveTreeNodesAdaptor

    Dosi Bingov Newbie

      I know that the name of recursiveTreeNodesAdaptor is changed in the last release of richfaces but my code still doesn't work.

       

      code before migration:

       

       

       

      {code:xml}

      <t:dataTable " binding="#{quoteOptions.packTable}" value="packs" var="pack" >

         <t:column id="packname">   

       

            <rich:tree showConnectingLines="false"  switchType="client">

                    <rich:treeNode></rich:treeNode>                               

                   <rich:recursiveTreeNodesAdaptor roots="#{pack}" var="subopts" nodes="#{subopts.subOptionNodes}">

                         <rich:treeNode><h:outputLabel value="#{subopts.description}" for="selected" /></rich:treeNode>

                    </rich:treeModelRecursiveAdaptor>

               </rich:tree>

       

        </t:column>

      </t:dataTable>

       

      {code}

       

       

       

       

       

       

       

      code after migration:

       

       

       

      {code:xml}

      <t:dataTable " binding="#{quoteOptions.packTable}" value="packs" var="pack">

      <t:column id="packname">   

       

       

      <rich:tree toggleType="client" var="item">

            <rich:treeModelRecursiveAdaptor roots="#{pack}" nodes="#{item.subOptionNodes}" >

                  <rich:treeNode>

                       #{item.description}

                   </rich:treeNode>

                  <rich:treeModelAdaptor nodes="#{item.subOptionNodes}">

                       <rich:treeNode>#{item}</rich:treeNode>

                  </rich:treeModelAdaptor>

             </rich:treeModelRecursiveAdaptor>

      </rich:tree>

       

      </t:column>

      </t:dataTable>

       

       

      {code}

       

       

       

       

       

      The tree don't  show up. What I am doing wrong in this migration. ?