title: onerror on the <p:commandButton not working
body: <p>I have primefaces command button as below:</p>
  
  <pre><code> &lt;p:commandButton id="btnContinue"
   value="Continue"
   style="float:right;"
   oncomplete="handleDialogSubmit(xhr, status, args);"
   update="form1, :view1:linksForm2:queryParameters"
   actionListener="#{controller.save}"
   onerror="handleError(xhr, status, args);"
   styleClass="continue-button" /&gt;
   ....
   ....
  
   &lt;script type="text/javascript"&gt;
           function handleError(xhr, status, args) {
               alert("I a m here ...");
               alert("xhr : " + xhr);
               alert("status : " + status);
               alert("args : " + args);
           }
      &lt;/script&gt;
  </code></pre>
  
  <p>When the error/exception occurs handleError() does not get called. But if I remove 'xhr, status, args' like below:</p>
  
  <pre><code>&lt;p:commandButton id="btnContinue"
       value="Continue"
       style="float:right;"
       oncomplete="handleDialogSubmit(xhr, status, args);"
       update="form1, :view1:linksForm2:queryParameters"
       actionListener="#{controller.save}"
       onerror="handleError();"
       styleClass="continue-button" /&gt;
   ....
   ....
  
   &lt;script type="text/javascript"&gt;
           function handleError() {
               alert("I a m here ...");
               alert("xhr : " + xhr);
               alert("status : " + status);
               alert("args : " + args);
           }
      &lt;/script&gt;
  </code></pre>
  
  <p>Then I see alert 'I am here' and not the rest of them. 
  How can I get access to xhr, status, args in the event of an error/exception ?</p>
  
  <p>Thanks</p>