Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 2.0-Alpha2
-
Fix Version/s: 2.0-Alpha3, 2.0.0
-
Component/s: Framework
-
Labels:None
-
Environment:server
Description
To avoid any subtle issues in the future we need to make sure only one view state key is generate per page load. Right now, during page load, com.sun....FormRender and BridgeSetup generate a view state key by calling StateManager.getViewState method. When the view is handled by ICEfaces it will modify the forms within the page to use the key generated by the form renderer.
Currently the script UIOutput components are prepared with the static value of the ViewState key at the time they are added to the component tree. It should be possible to create a UIOutput that dynamically produces its value from the ViewState key at the time of rendering. (It is still possible for the component tree to be altered during the render phase, but the risk is at least reduced.)
It may also make sense to allow a mode where the value is looked up in the browser from javax.faces.ViewState. This would work well in the Servlet case when forms are present, so could be the default mode.