1 Reply Latest reply on Sep 9, 2009 7:11 PM by nbelaevski

    rich:tree how to handle selection of already selected node

    tw

      RF 3.3.1

      For a rich:tree, I need to be able to handle the click of an already selected node as selection on the server. The problem I face is that advice/process selection are only called when the selection changes, not when the node that is marked selected on the client is clicked again. In either case the AJAX request is fired, but the backing bean only called on selection change. How can I get hold of the "click on selected node" event?


      <rich:tree
      limitToList="true"
      ajaxSubmitSelection="true"
      adviseNodeSelected="#{treeAction.adviseNodeSelected}"
      switchType="client"
      value="#{treeAction.rootNode}"
      var="node">

      Another strange behavior is that on selection change, reRender related processing of AJAX regions works as expected. But when the selected tree node is clicked again, an AJAX request is fired that will process unrelated components on the page.

      Thanks!