title: RichFaces a4j:commandButton oncomplete
body: <p>Hi i have this demo form with RF 4.5.2, the oncomplete execute 3 times, i need a way to execute a method after the ajax call but only one time, i think that is the behaviour of the oncomplete but if it doesnt you can suggest any other ideas to accomplish this:</p>
  
  <pre><code>    &lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; 
  &lt;html xmlns="http://www.w3.org/1999/xhtml"
        xmlns:h="http://java.sun.com/jsf/html"
        xmlns:a4j="http://richfaces.org/a4j"
        xmlns:rich="http://richfaces.org/rich"
        xmlns:f="http://java.sun.com/jsf/core"
        xmlns:ui="http://java.sun.com/jsf/facelets"&gt; 
  
  &lt;h:head&gt;&lt;/h:head&gt; 
  &lt;body&gt;
      &lt;rich:panel&gt;
      &lt;h:form&gt;
          &lt;a4j:commandButton  id="btnAccion" value="enviar" oncomplete="#{archivoAfipController.emptyAction()}"/&gt;
      &lt;/h:form&gt;
      &lt;/rich:panel&gt;
  &lt;/body&gt; 
  &lt;/html&gt;
  </code></pre>