2 Replies Latest reply on Aug 4, 2009 6:02 AM by cammette

    rich tree selected problem

    cammette

      i defined a rich tree like this:

      <rich:tree value="#{forumsTreeBean.root}" style="width:20px"
       toggleOnClick="true" switchType="ajax" var="forums"
       nodeFace="simpleNode"
       adviseNodeOpened="#{forumsTreeBean.expandListener}"
       ajaxSubmitSelection="false">
       <rich:treeNode style="cursor:pointer" type="simpleNode">
       <a:outputPanel style="cursor:pointer">
       <h:outputText value="#{forums.name}" />
       <a:support event="onclick"
       actionListener="#{forumsTreeBean.selectListener}"
       ajaxSingle="true" reRender="body" />
       </a:outputPanel>
       </rich:treeNode>
       </rich:tree>
      

      it do well.
      but i selected a node(click node text),and fire the tree expand at the same time.
      i want to select a node only,and don't fire a expand event.
      how to do ,thanks.