1 Reply Latest reply on Nov 19, 2007 1:00 PM by hager hager

    How to expand a tree with the selected node?

    hager hager Newbie

      Hello, I'm using rich:tree
      I want to expand the tree with the selected node?
      What can I do?
      Thx for help!

        • 1. Re: How to expand a tree with the selected node?
          hager hager Newbie

          this my code :

          <rich:tree id="tree"
           style="width:300px"
           ajaxSubmitSelection="true"
           switchType="client"
           value="#{treeMenu.treeNode}"
           var="data"
           adviseNodeOpened="#{treeMenu.expanded}"
           adviseNodeSelected="#{treeMenu.selected}"
           nodeSelectListener="#{treeMenu.nodeSelectListener}"
           nodeFace="text">
          
           <rich:treeNode type="text">
           <h:outputText value="#{treeMenu.mapLien[data]}" escape="false"></h:outputText>
           </rich:treeNode>
           </rich:tree>