2 Replies Latest reply on Jun 26, 2008 11:49 AM by Kerdudou Ronan

    How to Implement multiple node select in richfaces tree?

    anjana patel Newbie

      Can any one tell me what changes have to be done on my richfaces tree component to implement multiple node selection?

      Please find the sample tree structure as below
      -------------------------------------------------------------------------------------

      <rich:tree
       nodeSelectListener="#{TreeBean.processSelection}"
       ajaxSubmitSelection="true"
       switchType="ajax"
       changeExpandListener="#{TreeBean.processExpansion}"
       adviseNodeOpened="#{TreeBean.adviseNodeOpened}"
       id="Tree"
       ajaxSingle="false"
       adviseNodeSelected="#{TreeBean.adviseNodeSelected}"
       value="#{TreeBean.rootNode}" var="item" nodeFace="#{item.type}">
      
       <rich:treeNode type="node" iconLeaf="/manager/images/parent_norm.gif" icon="/manager/images/parent_norm.gif">
       <h:outputText value="#{item.name}" style="font-size:8pt;"/>
       </rich:treeNode>
      
       <rich:treeNode type="leaf" iconLeaf="/manager/images/_orange.gif" icon="/manager/images/_orange.gif">
       <h:outputText value="#{item.name}" style="font-size: 8pt;"/>
       </rich:treeNode>
      
       <rich:treeNode type="next" iconLeaf="/manager/images/next.gif" icon="/manager/images/next.gif">
       <h:outputText value="#{item.name}" style="font-size: 8pt;color:blue"/>
       </rich:treeNode>
      
       <rich:treeNode type="prev" iconLeaf="/manager/images/previous.gif" icon="/manager/images/previous.gif">
       <h:outputText value="#{item.name}" style="font-size: 8pt; color:blue"/>
       </rich:treeNode>
      </rich:tree>

      -------------------------------------------------------------------------------------

      Thanks in advance.