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

    trouble whit a4j:actionparam

    osvaldogomez

      Hi

      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>
      </a4j:commandLink>

      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){
      SemaphoreDetail();
      }
      }

      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

      Regards