You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Jay Sartoris (JIRA)" <de...@myfaces.apache.org> on 2015/04/03 03:50:54 UTC
[jira] [Created] (MYFACES-3973) element does not
contain an "id" attribute
Jay Sartoris created MYFACES-3973:
-------------------------------------
Summary: <partial-response> element does not contain an "id" attribute
Key: MYFACES-3973
URL: https://issues.apache.org/jira/browse/MYFACES-3973
Project: MyFaces Core
Issue Type: Bug
Components: JSR-344
Affects Versions: 2.2.7
Reporter: Jay Sartoris
Priority: Minor
In the JSF 2.2 specification, under the Lifecycle changes, it specifies this change:
--------
In web-partialresponse_2_2.xsd, require that the <partial-response> element has an “id” attribute whose value is the return from UIViewRoot.getContainerClientId().
--------
However, I tested a simple Ajax call using MyFaces 2.2.7, it does not add an id attribute on a response from an Ajax POST request.
For example, if you execute an Ajax request in a browser and view the response via web tools you can see something like this:
<?xml version="1.0" encoding="UTF-8"?>
<partial-response>
<changes>
<update id="form1:employeeMatches">
<![CDATA[<span id="form1:employeeMatches"></span>]]>
</update>
<update id="j_id__v_0:javax.faces.ViewState:1">
<!CDATA[UUOsHNAgWbpnTUIxakamLpmVmCpjK5C4uqUU38cIIdd6oupU]]>
</update>
</changes>
</partial-response>
However, if you run the same scenario using Mojarra JSF 2.2.10 the <partial-response> tag will contain an id attribute.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)