0 Replies Latest reply on Jan 3, 2012 1:27 AM by Saurabh Tyagi

    JavaScript for rich:tree node selection

    Saurabh Tyagi Newbie

      Hi All,

       

      i have a rich:tree, it is working fine but taking somuch time to reRender the components. i want some java script solution to avoid this delay. My Tree code as follows :

       

      <rich:tree toggleOnClick="false" id="groupTree" nodeSelectListener="#{treeGenerator.processSelection}" reRender="selectedNode, selectedContacts,      textArea,groupTree" ajaxSubmitSelection="true" switchType="client" value="#{treeGenerator.groupTree}" var="item" oncontextmenu="true"      ajaxKeys="#{null}">

                <rich:treeNode  iconLeaf="/myImages/faces/#{item.gender}.png" icon="/myImages/faces/user-group-icon.png" >

                               <h:outputText style="color:#{item.rowColor}" value="#{item.name}" />

                </rich:treeNode>

      </rich:tree>