how to learn the primefaces javascript API?

While learning JSF-2.2 with PrimeFaces 5.3 I came across javascript events handlers like the one used with onComplete attribute:

function handelSmptmSaveRequest(xhr, status, args) {
                            if (args.validationFailed) {
                                PF('smptmDlgWv').jq.effect("shake", {
                                    times : 5
                                }, 100);
                            } else {

I have multiple questions here:

  • Jquery Datatables column rendering and sorting
  • Jquery alert when all dynamic images finish loading
  • Making AJAX Applications crawlable without backend control
  • $.post() giving bad url string
  • How to get around a 'NS_ERROR_ILLEGAL_VALUE' error using Ajax?
  • How to get Latest Chrome (Version 55) to allow mixed content?
    1. What are the input variable xhr, status, args and where are they defined, and where do they get their values from?
    2. Is this the only handler I need to use with jsf components events such as onBlur or onClick, and how can I learn them?
    3. 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?

    This appears to be Ajax callbacks defined by PrimeFaces, and They’re announced here 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.

  • Is there a framework like now.js for Django?
  • Google Maps style scrolling anyone?
  • AJAX: Getting ajax call javascript function
  • How to prevent a stack overflow in IE due to unwanted recursion
  • Can Javascript access the DOM of an Ajax text/html response?
  • Workaround to enable form validation on views dynamically loaded by ajax on Asp.Net Mvc3
  • One Solution collect form web for “how to learn the primefaces javascript API?”

    Here is the PrimeFaces 5.3 documentation, in PDF form. (Here are docs for all versions.)

    Page 536 documents the parameters for the oncomplete(xhr, status, args) function:

    Javascript callback to process when ajax request completes. Takes
    three arguments, xmlhttprequest, status string and optional arguments
    provided by RequestContext API.

    XMLHttpRequest is the vanilla JS Object that we all know and love.

    RequestContext is defined on page 588 of the PrimeFaces 5.3 documentation:

    RequestContext is a simple utility that provides useful goodies such
    as adding parameters to ajax callback functions. RequestContext is
    available in both ajax and non-ajax requests.