myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Werner Punz (JIRA)" <>
Subject [jira] [Commented] (MYFACES-4160) ViewState not written for Ajax request
Date Sun, 08 Oct 2017 16:26:00 GMT


Werner Punz commented on MYFACES-4160:

While trying 4156 I found another issue in the rendered markup:

First at initial page load the page was basically perfectly rendered, once I tried to hit
the login button following response came

<partial-response id="j_id__v_0"> <!-- which puts the code into naming mode response
  <update id="helloForm"><![CDATA[<form id="helloForm" name="helloForm" .... this
part is fine]]></update>

 <update id="j_id__v_0:javax.faces.ViewState:1">
Now this is problematic

a) the response is prefixed wich puts the code into naming mode which means only the elements
with the prefix j_id__v_0 will be updated...
which then means the viewstate update will only update form2 not form1, because of the prefix
and hence you again run into viewstate sync issues:
there seems to be the first form being omitted from the viewroot id.

> ViewState not written for Ajax request
> --------------------------------------
>                 Key: MYFACES-4160
>                 URL:
>             Project: MyFaces Core
>          Issue Type: Bug
>    Affects Versions: 2.3.0-beta
>            Reporter: Thomas Andraschko
>            Assignee: Werner Punz
>             Fix For: 2.3.0
> If you run the application from MYFACES-4156 via mvn jetty:run, the viewStateId isn't
rendered again after the first ajax request.
> Seems like FaceletViewDeclerationLanguage line 1910 should handle that but it skips.
> [~lu4242] Could you please check that?

This message was sent by Atlassian JIRA

View raw message