0 Replies Latest reply on Jul 15, 2009 2:15 AM by neha2911

    Getting selected tree node value in javascript

    neha2911 Newbie

      I have a rich faces tree which gets the value from the backing bean. Now as soon as this tree node is selected , I want to call a js function that does sumthing with current selection. How can i get the selected tree node value in js function.

      My tree node is:

      <rich:tree value="#{echoBean.stationNodes}" var="station">
       <rich:treeNode onselected="updateFields()">
       <h:outputText id="treenode" value="#{station}" />
      </rich:treeNode>
      </rich:tree>
      
      


      Now I want the selcected tree node value in the updateFields js Function.
      How can I achieve the same?