0 Replies Latest reply: May 18, 2012 11:24 PM by 862998 RSS

    Using <af:serverlistener> with <af:commandNavigationItem>

    862998
      Hi

      I am navigating from one page to another using <af:navigationPane> as below:
      <af:navigationPane id="np5" var="node" hint="list" value="#{navigationContext.samplenav.listModel['startNode=toplinks/home, includeStartNode=true']}" clientComponent="true">
      <f:facet name="nodeStamp">
      <af:commandNavigationItem text="Destination" id="cni5"
      destination="#{node.goLinkPrettyUrl}" clientComponent="true">
      <af:clientListener method="onclick" type="click"/>
      <af:clientAttribute name="attr" value="value"/>
      <af:serverListener type="CustomServerEvent" method="#{pageFlowScope.testBean.processAction}"/>
      <f:attribute name="node" value="#{node}"/>
      </af:commandNavigationItem>
      </f:facet>
      </af:navigationPane>

      The navigation is working perfectly. But i would like to set some values in my bean when the user clicks on the link by calling my server side method.
      When i try using serverlistener but no luck, it does not call the server side method:(
      Is there any way of achieving this?

      Thanks