Options
All
  • Public
  • Public/Protected
  • All
Menu

The interface for the object containing functionality related to processing the different types of actions from AJAX responses.

Hierarchy

  • ResponseProcessor

Index

Methods

  • doAttributes(node: Node): undefined | boolean
  • Handles an attributes AJAX action by setting the attributes on the DOM element.

    Parameters

    • node: Node

      The XML node of the attributes action.

    Returns undefined | boolean

    false if the AJAX action could not be performed, true or undefined otherwise.

  • doDelete(node: Node): void
  • Handles a delete AJAX action by remove the DOM element.

    Parameters

    • node: Node

      The XML node of the delete action.

    Returns void

  • Handles an error AJAX action by doing nothing currently.

    Parameters

    • node: Node

      The XML node of the error action.

    • xhr: pfXHR<PrimeFacesArgs>

      The XHR request to which a response was received.

    Returns void

  • Handles an eval AJAX action by evaluating the returned JavaScript.

    Parameters

    • node: Node

      The XML node of the eval action.

    • xhr: pfXHR<PrimeFacesArgs>

      The XHR request to which a response was received.

    Returns void

  • Handles an extension AJAX action by extending the pfArgs property on the jQuery XHR object.

    Parameters

    • node: Node

      The XML node of the extension action.

    • xhr: pfXHR<PrimeFacesArgs>

      The XHR request to which a response was received.

    Returns void

  • doInsert(node: Node): undefined | boolean
  • Handles an insert AJAX action by inserting a newly creating DOM element.

    Parameters

    • node: Node

      The XML node of the insert action.

    Returns undefined | boolean

    false if the AJAX action could not be performed, true or undefined otherwise.

  • doRedirect(node: Node): void
  • Handles a redirect AJAX action by performing a redirect to the target URL.

    Parameters

    • node: Node

      The XML node of the redirect action.

    Returns void

  • Handles an update AJAX action by calling the given update handler. When no update handler is given, replaces the HTML content of the element with the new content.

    Type Parameters

    Parameters

    • node: Node

      The XML node of the update action.

    • xhr: pfXHR<PrimeFacesArgs>

      The XHR request to which a response was received.

    • Optional updateHandler: UpdateHandler<TWidget>

      Optional handler for the update.

    Returns void

Generated using TypeDoc