1 Reply Latest reply on Oct 18, 2007 4:47 AM by jobo

    <rich:tree> and nodeSelectionListener

    jobo

      I'm using the <rich:tree> component with a nodeSelectionListener:

      <rich:tree value="#{bean.groupTree}"
       nodeSelectListener="#{bean.nodeSelected}"
       var="data"
       id="gtree"
       ajaxSubmitSelection="true" >
      ....
      </rich:tree>


      The implementations of bean.nodeSelected looks like this:

      public void nodeSelected(NodeSelectedEvent event) {
       //.. code
       }
      


      The nodeSelected method is invoked when I click on a node but I can't find a way of finding out what node I selected.

      The NodeSelectedEvent object doesn't seem to contain that information?
      I though that it would be possible to use
      <a4j:actionparam>'s to pass value to the listener but I havn't found anything in the documentation on how that should be implemented.

      The reason I want to use the nodeSelected event is ofcource because I want to update some other content in my page.

      Any suggestions?

      Thanks
      Jonathan