Details
Description
The following code in DOMPartialViewContext is not rendering the "id" of the <update> element correctly for JSF 2.2:
{code}
private void renderState() throws IOException {
// Get the view state and write it to the response..
PartialResponseWriter writer = getPartialResponseWriter();
writer.startUpdate(PartialResponseWriter.VIEW_STATE_MARKER);
String state = facesContext.getApplication().getStateManager().getViewState(facesContext);
writer.write(state);
writer.endUpdate();
}
{code}
The "id" of the update should be namespaced like this:
{code}
<partial-response>
<changes>
<update id="A4673:javax.faces.ViewState:0">
<![CDATA[4212726618426443884:8310815191568508735]]>
</update>
</changes>
</partial-response>
{code}
But instead, it looks like this:
{code}
<partial-response>
<changes>
<update id="A4673:javax.faces.ViewState:0">
<![CDATA[4212726618426443884:8310815191568508735]]>
</update>
</changes>
</partial-response>
{code}
In order to see how Mojarra does it, please refer to {{com.sun.faces.context.PartialViewContextImpl.renderState(FacesContext)}} and {{com.sun.faces.util.Util.getViewStateId(FacesContext)}}.
{code}
private void renderState() throws IOException {
// Get the view state and write it to the response..
PartialResponseWriter writer = getPartialResponseWriter();
writer.startUpdate(PartialResponseWriter.VIEW_STATE_MARKER);
String state = facesContext.getApplication().getStateManager().getViewState(facesContext);
writer.write(state);
writer.endUpdate();
}
{code}
The "id" of the update should be namespaced like this:
{code}
<partial-response>
<changes>
<update id="A4673:javax.faces.ViewState:0">
<![CDATA[4212726618426443884:8310815191568508735]]>
</update>
</changes>
</partial-response>
{code}
But instead, it looks like this:
{code}
<partial-response>
<changes>
<update id="A4673:javax.faces.ViewState:0">
<![CDATA[4212726618426443884:8310815191568508735]]>
</update>
</changes>
</partial-response>
{code}
In order to see how Mojarra does it, please refer to {{com.sun.faces.context.PartialViewContextImpl.renderState(FacesContext)}} and {{com.sun.faces.util.Util.getViewStateId(FacesContext)}}.
Issue Links
- blocks
-
ICE-7768 Verify compatibility with JSF 2.2
- Closed
Thanks for logging this JIRA Neil. Targeted for ICEfaces 4.0, which is our JSF 2.2 supporting release.