[ http://issues.apache.org/jira/browse/MYFACES-1026?page=comments#action_12365258 ]
Mathias Broekelmann commented on MYFACES-1026: ---------------------------------------------- The state index is incremented on reading because multiple requests on the same time for the same session are possible. Does anyone know a better solution which still supports the multiple request case? > StateManager.restoreView has bad side effects > --------------------------------------------- > > Key: MYFACES-1026 > URL: http://issues.apache.org/jira/browse/MYFACES-1026 > Project: MyFaces > Type: Bug > Components: Implementation > Versions: Nightly, 1.1.1 > Reporter: Howard Abrams > Assignee: Mathias Broekelmann > > Calling StateManager.restoreView has the side effect of messing up the stored > state. > In 1.1.1, calling this method would remove the state from the session, and > therefore it would be lost forever if the lifecycle didn't re-render causing > the state to be re-stored. > In 1.1.2, multiple states are now stored, but calling this method causes the > index number of the current state to be incremented even though a new state > may never be stored. > While this bug isn't seen in normal use, it pops up quite quickly when > attempting more complicated/different AJAX-style lifecycles. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira