9 Replies Latest reply on Dec 19, 2009 4:46 AM by Matthias Nott

    tree[nodeSelectListener] never gets fired

    Yuriy ZUbarev Newbie

      Greetings,

      I use Seam 2.0.1 and RichFaces 3.1.3.

       <h:form>
       <h:panelGrid columns="2" width="100%">
       <rich:tree value="#{permissionList.tree}"
       nodeSelectListener="#{permissionList.processSelection}"
       switchType="client"
       var="node"
       nodeFace="basic"
       reRender="selectedNode"
       ajaxSubmitSelection="true" >
       <rich:treeNode type="basic" >
       #{node.name}
       </rich:treeNode>
       </rich:tree>
      
       <h:outputText escape="false" value="Selected Node: #{permissionList.selectedPermission}" id="selectedNode" />
       </h:panelGrid>
       </h:form>
      


      @Name("permissionList")
      public class PermissionList extends EntityQuery {
      
       // other methods
      
       public void processSelection(NodeSelectedEvent event) {
       log.debug("event = " + event);
       UITree tree = (UITree) event.getComponent();
       log.debug("tree = " + tree);
       log.debug("rowData = " + tree.getRowData());
       this.selectedPermission = (Permission) tree.getRowData();
       }
      
      }
      


      "processSelection" method never gets called. I tried different combinations of "switchType" and "ajaxSubmitSelection" values.

      Anything obvious I'm missing?

      Thank you,
      Yuriy