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
Activity
Neil Griffin
created issue -
Neil Griffin
made changes -
Ken Fyten
made changes -
Fix Version/s | 4.0 [ 10770 ] |
Ken Fyten
made changes -
Assignee | Mircea Toma [ mircea.toma ] | |
Assignee Priority | P2 [ 10011 ] |
Mircea Toma
made changes -
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)}}. |
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)}}. |
Mircea Toma
made changes -
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)}}. |
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)}}. |
Mircea Toma
made changes -
Status | Open [ 1 ] | Resolved [ 5 ] |
Resolution | Fixed [ 1 ] |
Repository | Revision | Date | User | Message |
ICEsoft Public SVN Repository | #39266 | Tue Dec 10 11:22:03 MST 2013 | mircea.toma | |
Files Changed | ||||
MODIFY
/icefaces4/trunk/icefaces/core/src/main/java/org/icefaces/impl/context/DOMPartialViewContext.java
|
Ken Fyten
made changes -
Fix Version/s | 4.0 [ 11382 ] |
Ken Fyten
made changes -
Status | Resolved [ 5 ] | Closed [ 6 ] |
Thanks for logging this JIRA Neil. Targeted for ICEfaces 4.0, which is our JSF 2.2 supporting release.