0 Replies Latest reply on May 2, 2008 8:49 AM by osvaldo gomez

    trouble whit a4j:actionparam

    osvaldo gomez Newbie


      I have the follow jsp

      <a4j:commandLink id="nodeLink" actionListener="#{userLogin.semaphoreByNode}" reRender="semaphores">
      <a4j:actionparam noEscape="true" name="current" value="#{item.id}" assignTo="#{userLogin.nodeId}" />
      <h:outputText value="#{item.name}"></h:outputText>

      and in the managed bean execute the method invoqued

      public void semaphoreByNode(ActionEvent e){
      SemaphoreService sempahoreService = getBean().getSemaphoreService();
      semaphores = ( nodeId == 0)?sempahoreService.getSemaphoresByUser(user):sempahoreService.getSemaphoresByNode(user, nodeId );
      if(indicatorNodes != null){

      and then update nodeId whit the parameter. But I need update nodeId before execute the method because I'm getting wrong data with the old nodeId.

      Any help is welcome