title: how to learn the primefaces javascript API?
body: <p>While learning JSF-2.2 with PrimeFaces 5.3 I came across javascript events handlers like the one used with <code>onComplete</code> attribute:</p>
  
  <pre><code>function handelSmptmSaveRequest(xhr, status, args) {
                              if (args.validationFailed) {
                                  PF('smptmDlgWv').jq.effect("shake", {
                                      times : 5
                                  }, 100);
                              } else {
                                  PF('smptmDlgWv').hide();
                              }
                          }
  </code></pre>
  
  <p>I have multiple questions here:</p>
  
  <ol>
  <li>What are the input variable <code>xhr, status, args</code> and where are they defined, and where do they get their values from?</li>
  <li><strike>Is this the only handler I need to use with jsf components events such as <code>onBlur</code> or <code>onClick</code>, and how can I learn them?</strike></li>
  <li>Is there any documentation for this? I came from Java SE where every thing is documented and explained, where to look for javascript documentations and how?</li>
  </ol>
  
  <p><strong>Edit1</strong>
  This appears to be Ajax callbacks defined by PrimeFaces, and They're announced here <a href="http://blog.primefaces.org/?p=830">http://blog.primefaces.org/?p=830</a> but there is still a problem, though the PF showcase has some examples of usage, but I can't fine do documentation for these functions, I'm adding ajax tag for the question.</p>