Appends a request parameter to the given list of parameters. Optionally add a prefix to the name, this is used for portlet namespacing.
the form data to add to the form.
Name of the new parameter to add.
Value of the parameter to add.
Optional prefix that is added in front of the name.
Adds a new request parameter to the given FormData. The value of the parameter is taken from the input element of the given form. The input element must have the same name as the name of the parameter to add. Optionally add a prefix to the name, which used for portlet namespacing.
The FormData.
Name of the new parameter to add
An HTML FORM element that contains an INPUT element with the given name.
Optional prefix that is added in front of the name.
Appends a request parameter to the given list of parameters. Optionally add a prefix to the name, this is used for portlet namespacing.
Defaults to unknown
. Type of the parameter value.
List of parameters to which a new parameter is added.
Name of the new parameter to add.
Value of the parameter to add.
Optional prefix that is added in front of the name.
Adds a new request parameter to the given list. The value of the parameter is taken from the input element of the given form. The input element must have the same name as the name of the parameter to add. Optionally add a prefix to the name, which used for portlet namespacing.
List of request parameters to the new parameter is added.
Name of the new parameter to add
An HTML FORM element that contains an INPUT element with the given name.
Optional prefix that is added in front of the name.
Adds a list of callback parameters to the given list. Optionally prepends a prefix to the name of each added parameter.
Defaults to unknown
. Type of the parameter values.
List of callback parameters to which parameters are added.
List of callback parameters to add.
Optional prefix that is added in front of the name of the added callback parameters.
Creates a new array with all parameters from the second array that are not in the first array. That is, removes all parameters from the second array whose name is equal to one of the parameters in the first array. The given input array are not modified.
Defaults to unknown
. Type of the parameter values.
A list of parameters for comparison.
A list of additional parameters.
An list of parameters that are in the second array, but not in the first.
Performs the early collection of post parameters (form element values) if the request is configured that way. See: https://github.com/primefaces/primefaces/issues/109
Configuration for the AJAX request to send, such as the HTTP method, the URL, and the content of the request.
The collected form element values to be sent with the request.
Creates a FormData which can be used for a Faces AJAX request on the current view. It already contains all required parameters like ViewState or ClientWindow.
The closest form of the request source.
The Portlet parameter namespace.
The id of the request source.
A comma separated list of components which should be processed.
A comma separated list of components which should be updated.
The newly created form data.
Finds the namespace (prefix) for the parameters of the given form. This is required for Porlets as a Portlet contains multiple JSF views and we must only process and update the forms/inputs of the current view / application. Later the namespace is used for all post params.
An HTML FORM element.
The namespace for the parameters of the given form, or null
when the form does
not specifiy a namespace.
Handles the given AJAX request, either by sending it immediately (if async
is set to true
), or by
adding it to the AJAX queue otherwise. The AJAX queue ensures that requests are sent and handled in the
order they were started. See also jsf.ajax.request.
Configuration for the AJAX request to send, such as the HTTP method, the URL, and the content of the request.
Optional extender with additional options
that overwrite the options given in cfg
.
A promise that resolves once the AJAX requests is done. Use this to run custom JavaScript logic. When the AJAX request succeeds, the promise is fulfilled. Otherwise, when the AJAX request fails, the promise is rejected. If the promise is rejected, the rejection handler receives an object of type PrimeFaces.ajax.FailedRequestData.
Given an AJAX call configuration, resolves the components for the process
or update
search
expressions given by the configurations. Resolves the search expressions to the actual components and
returns a list of their IDs.
the source element.
An AJAX call configuration.
Whether to resolve the process
or update
expressions.
A list of IDs with the components to which the process or update expressions refer.
Collects all process
or update
search expressions from the given AJAX call configuration and returns
them as one search expression.
An AJAX call configuration.
Whether to resolve the process
or update
expressions.
All process or update search expression from the given configuration.
Starts the given AJAX request immediately by sending the data to the server. Contrast with handle, which may queue AJAX requests, depending on how they are configured.
Configuration for the AJAX request to send, such as the HTTP method, the URL, and the content of the request.
false
if the AJAX request is to be canceled, true
or undefined
otherwise.
Generated using TypeDoc
The interface for the object containing functionality related to sending AJAX requests.