0 Replies Latest reply on Mar 28, 2007 9:51 AM by tomba

    how to get selection with rich:Tree

    tomba

      Hi all,
      I'm trying to act upon the selection of a node in my rich:Tree but I cannot get the event to be executed. Here's my code:

       <rich:tree nodeSelectListener="publicDownload.changeDirectory" immediate="true" ajaxSubmitSelection="true" id="dirtree" switchType="client" var="dirnode" value="#{publicDownload.directories}" nodeFace="dirfacenode">
       <rich:treeNode type="dirfacenode" reRender="filelist">
       <h:outputText value="#{dirnode.name}"/>
       </rich:treeNode>
       </rich:tree>
      


      The method publicDownload.changeDirectory looks like this:
       public void changeDirectory(ActionEvent event) throws AbortProcessingException
       {
       getLog().debug("++++++++event.getSource()" + event.getSource());
       getLog().debug("+++++++++event.getComponent()" + event.getComponent());
       }
      


      However, the latter function is simply never executed. Should I do something more to fire the events to the server?

      Thank you