6 Replies Latest reply on Jun 11, 2007 7:45 PM by kiran sagi

    Tree nodeSelectListener

    Dustin Norlander Apprentice

      Hi,

      I have a tree that is defined like:

      <h:form>
       <rich:tree
       value="#{watchGroupNav.tree.root}"
       var="item"
       nodeFace="#{item.type}"
       switchType="ajax"
       styleClass="nav-tree"
       nodeSelectListener="#{watchGroupNav.onSelect}"
       >
       <rich:treeNode type="wg_folder"
       nodeClass="nn-label-folder"
       icon="/img/folder.png"
       iconCollapsed="/img/tree-expand.gif"
       iconExpanded="/img/tree-collapse.gif"
       >
       <h:outputText value="#{item.label}" />
       </rich:treeNode>
       <rich:treeNode type="watch_group"
       nodeClass="nn-label-watch_group"
       >
      
       <h:outputText value="#{item.label}" />
       </rich:treeNode>
       </rich:tree>
      </h:form>
      


      Where onSelect is:

      public void onSelect(NodeSelectedEvent event) {
       System.out.println("node selected!");
      }
      


      onSelect is never called. When I select a node the styleClass changes, but nothing else happens, no post, nothing..

      any help?

      thanks,
      Dustin