2 Replies Latest reply on Jan 31, 2011 9:55 AM by Ilya Sorokoumov

    Rich tree , build by refreshing tree from database

    krikor paol Newbie

      Hi all, I am building a rich tree and everything is fine.The problem is I GET Data from databse and the data is 20,000.So I cannot get all the data and build the tree.I need on expand, to go to databse and bring on the data and add it to the tree.



      <rich:tree   adviseNodeSelected="#{treeBB.adviseNodeSelected}" adviseNodeOpened="#{treeBB.adviseNodeSelected}"       nodeSelectListener="#{treeBB.processSelection}" 

           nodeFace="#{treeNode.parent.parent == null ? 'node' : 'leaf'}"


           styleClass="font;cursor:pointer;"  style="width:300px"


          value="#{treeBB.treeNode}"  var="item">

              <a4j:support ajaxSingle="true" event="onexpand"  action="#{treeBB.expand}">

                  <f:param name="expandedRight"  value="23"/>


      <a4j:support event="onselected" reRender="aPan"   />   

              <rich:treeNode   type="node">

                      <h:outputText  value="#{item.name}">







      the bold part,  on treebb.expand i am able to read parameter 23. However When I do this,   <f:param name="expandedRight"  value="item.name"/> I am unable to read it.Its empty. Why?