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

    treeNode with h:commandLink

    slip

      Hi,

      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}" >
       <rich:treeNode>
       <h:commandLink action="#{bean.viewItemInfo}" value="#{item.name}" >
       <f:param name="itemId" value="#{item.id}" />
      
       </h:commandLink>
       </rich:treeNode>
       </rich:recursiveTreeNodesAdaptor>
       </rich:tree>
      


      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?