9 Replies Latest reply on Nov 3, 2015 7:57 AM by Ramu Avusali

    RichFaces 4.5.2 & Websphere 8.5.5 - a4jCommandlink/a4jCommandButton/a4jsfunctions onComplete is triggered multiple times

    Karthik Alagarsamy Newbie

      Hello everyone,

       

      In our application on Websphere environment, we are facing an issue related to a4j components [commandLink, commandButton, jsFunction]. The onComplete behavior is getting triggered multiple times.

       

      We are using JSF 2.2, My Faces 2.2.8

       

      Steps:

      1) Have a button/link/jsFunction using a4j component.

      2) Add a JS call in the onComplete, here add a js alert before the function call to test the issue.

      3) Click on that button, then we see the alert multiple times.

       

      Example Code snippets to try:

       

      <a4j:commandLink execute="@this" oncomplete="alert(1);">

        <h:outputText value="Click"/>

      </a4j:commandLink>

       

      Same is working fine on Weblogic 12.1.2 with same version of Rich Faces.

       

      Did anyone encounter similar issue? any pointers to resolve the issue is much appreciated.

       

      Thanks