3 Replies Latest reply on May 20, 2009 7:23 AM by Ilya Shaikovsky

    treeNode with h:commandLink

    Vitaly ... Newbie


      I have the following code snippet:

      <rich:tree style="width:100px;" switchType="client" stateAdvisor="#{bean.treeStateAdvisor}">
       <rich:recursiveTreeNodesAdaptor var="item" nodes="#{item.nodes}" roots="#{bean.rootNodes}" >
       <h:commandLink action="#{bean.viewItemInfo}" value="#{item.name}" >
       <f:param name="itemId" value="#{item.id}" />

      After I click on the commandLink, viewItemInfo action method of my backing bean is not called.
      How can I invoke action method from treeNode in order to redirect to the other page?