7 Replies Latest reply on Jul 4, 2011 10:30 AM by Laabidi Raissi

    RF_4.1.0: action and actionListener of <h:commandLink> inside <rich:treeNode>

    Paweł Ryszawa Newbie

      Hi!

       

      I have the following piece of code:

       

      <rich:tree id="treeValidations" rendered="#{myBean.showTree}"

                 value="#{myBean.myNodes}" var="mynode"

                 nodeType="#{mynode.type}" toggleType="client">

          <rich:treeNode type="my.type"

                         iconLeaf="#{resource['images:th_validation.gif']}"

                         iconCollapsed="#{resource['images:th_validation.gif']}"

                         iconExpanded="#{resource['images:th_validation.gif']}">

              <h:commandLink action="#{myBean.doAction}" actionListener="#{myBean.listenAction}">

                click me

              </h:commandLink>

           </rich:treeNode>

           <!-- an so on... -->

      </rich:tree>

       

       

      When I click the link inside the node no action is performed (I mean myBean.doAction and myBean.listenAction are not called). When I mode <h:commandLink> outside the tree everythong seems to work - both methods defined inside the tag are executed.

       

      What am I doing wrong? I would like to undertake some action when user clicks a node. How to do that?

       

       

      Regards,

      Paweł