The XMLHttpRequest instance that
contains the status code and response message from the server.
An object containing the request context, including the following properties: the identifier of the source element, per call onerror callback function, and per call onevent callback function.
Receive an Ajax response from the server.
Usage:
Implementation Requirements:
This function must evaluate the markup returned in therequest.responseXMLobject and perform the following action:emptyResponseerror. If the XML response does not follow the format as outlined in Appendix A.3 "XML Schema Definition For Partial Response" of the Jakarta Faces Specification Document signal amalformedErrorerror. Refer to Jakarta Faces Specification Document section 13.3.6.3 "Signaling Errors".successevent as outlined in Jakarta Faces Specification Document section 13.3.5.3 "Sending Events".Update Element Processing
Theupdateelement is used to update a single DOM element. The "id" attribute of theupdateelement refers to the DOM element that will be updated. The contents of theCDATAsection is the data that will be used when updating the contents of the DOM element as specified by the<update>element identifier.<update>element is found in the response with the identifierjakarta.faces.ViewRoot: Update the entire DOM replacing the appropriateheadand/orbodysections with the content from the response.<update>element is found in the response with an identifier containingjakarta.faces.ViewState: locate and update the submitting form'sjakarta.faces.ViewStatevalue with theCDATAcontents from the response. <SEP> is the currently configuredUINamingContainer.getSeparatorChar(). <VIEW_ROOT_CONTAINER_CLIENT_ID> is the return fromUIViewRoot.getContainerClientId()on the view from whence this state originated. <UNIQUE_PER_VIEW_NUMBER> is a number that must be unique within this view, but must not be included in the view state. This requirement is simply to satisfy XML correctness in parity with what is done in the corresponding non-partial Faces view. Locate and update thejakarta.faces.ViewStatevalue for all Faces forms covered in therendertarget list whose ID starts with the same <VIEW_ROOT_CONTAINER_CLIENT_ID> value.updateelement is found in the response with an identifier containingjakarta.faces.ClientWindow: locate and update the submitting form'sjakarta.faces.ClientWindowvalue with theCDATAcontents from the response. <SEP> is the currently configuredUINamingContainer.getSeparatorChar(). <VIEW_ROOT_CONTAINER_CLIENT_ID> is the return fromUIViewRoot.getContainerClientId()on the view from whence this state originated. <UNIQUE_PER_VIEW_NUMBER> is a number that must be unique within this view, but must not be included in the view state. This requirement is simply to satisfy XML correctness in parity with what is done in the corresponding non-partial Faces view. Locate and update thejakarta.faces.ClientWindowvalue for all Faces forms covered in therendertarget list whose ID starts with the same <VIEW_ROOT_CONTAINER_CLIENT_ID> value.updateelement is found in the response with the identifierjakarta.faces.Resource: append any element found in theCDATAcontents which is absent in the document to the document'sheadsection.updateelement is found in the response with the identifierjakarta.faces.ViewHead: update the document'sheadsection with theCDATAcontents from the response.updateelement is found in the response with the identifierjakarta.faces.ViewBody: update the document'sbodysection with theCDATAcontents from the response.<update>element: Find the DOM element with the identifier that matches the<update>element identifier, and replace its contents with the<update>element'sCDATAcontents.Insert Element Processing
<insert>element is found in the response with a nested<before>element:<before>element'sCDATAcontents from the response.before idand insert the<before>element'sCDATAcontent before the DOM element in the document.<insert>element is found in the response with a nested<after>element:<after>element'sCDATAcontents from the response.after idand insert the<after>element'sCDATAcontent after the DOM element in the document.Delete Element Processing
<delete>element is found in the response: Find the DOM element whose identifier matchesdelete idand remove it from the DOM.Element Attribute Update Processing
<attributes>element is found in the response:<attributes>identifier.<attribute>element in<attribute>, update the DOM element attribute value (whose name matchesattribute name), withattribute value.JavaScript Processing
<eval>element is found in the response:<eval>element'sCDATAcontents from the response and execute it as if it were JavaScript code.nonceattribute is present on the<script>element that corresponds to thejakarta.faces:faces.jsresource, for example:nonceattribute and apply it when executing the JavaScript code so that the browser permits execution.nonceattribute should also be applied when executing the JavaScript code found in other response elements, such as<update>,<insert>and<extensions>.Redirect Processing
<redirect>element is found in the response: Cause a redirect to the urlredirect url.Error Processing
<error>element is found in the response: Extract this<error>element'serror-namecontents and theerror-messagecontents. Signal aserverErrorpassing theerrorNameanderrorMessage. Refer to Jakarta Faces Specification Document section 13.3.6.3 "Signaling Errors".Extensions
<extensions>element provides a way for framework implementations to provide their own information.