[ 
https://issues.jboss.org/browse/RF-9368?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12769933#comment-12769933
 ] 

Peter Gwiazda commented on RF-9368:
-----------------------------------

org.ajax4jsf.renderkit.AjaxContainerRenderer 
{noformat}
    127         AjaxRendererUtils.encodeAreas(context, component);
    128         AjaxRendererUtils.encodeAjaxEnd(context, component);
{noformat}
then inside AjaxRendererUtils.encodeAjaxEnd the AjaxRendererUtils.encodeAreas 
is called once again: 
{noformat}
    964         public static void encodeAjaxEnd(FacesContext context, 
UIComponent component)
    965                         throws IOException {
    966                 // AjaxContainer ajax = (AjaxContainer) component;
    967                 ResponseWriter out = context.getResponseWriter();
    968                 // DebugUtils.traceView("ViewRoot in AJAX Page encode 
begin");
    969 
    970                 encodeAreas(context, component);
    971                         out.endElement("body");
    972                         out.endElement("html");
    973         }
{noformat}
                
> a4j response contains duplicate content (Ajax-Update-Ids, ajax-view-state, 
> Ajax-Response)
> -----------------------------------------------------------------------------------------
>
>                 Key: RF-9368
>                 URL: https://issues.jboss.org/browse/RF-9368
>             Project: RichFaces
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: component-a4j-core
>    Affects Versions: 3.3.3.Final
>            Reporter: Kai Gülzau
>              Labels: a4j
>             Fix For: 3.Future
>
>
> While debugging network traffic in a richfaces application i recognized some 
> duplicate data in the XML response.
> For example all responses on the demo site for a4j:poll 
> (http://livedemo.exadel.com/richfaces-demo/richfaces/poll.jsf)
> are containing something like this:
> ...
> <meta name="Ajax-Update-Ids" content="j_id353:poll,j_id354:grid" />
> <span id="ajax-view-state"><input type="hidden" name="javax.faces.ViewState" 
> id="javax.faces.ViewState" value="j_id2" /></span>
> <meta id="Ajax-Response" name="Ajax-Response" content="true" />
> <meta name="Ajax-Update-Ids" content="j_id353:poll,j_id354:grid" />
> <span id="ajax-view-state"><input type="hidden" name="javax.faces.ViewState" 
> id="javax.faces.ViewState" value="j_id2" /></span>
> <meta id="Ajax-Response" name="Ajax-Response" content="true" />
> ...

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

_______________________________________________
richfaces-issues mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/richfaces-issues

Reply via email to