ICEfaces
  1. ICEfaces
  2. ICE-8747

FixViewState use of StateManager.getViewState(FC) disrupts state saving under MyFaces

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 3.2
    • Fix Version/s: 3.3
    • Component/s: Framework
    • Labels:
      None
    • Environment:
      MyFaces
    • Assignee Priority:
      P2

      Description


      While investigating ICE-8324, it was found that component rendering code in FixViewState.ScriptWriter that calls Application.getStateManager.getViewState(FacesContext) triggers the StateManager's state saving of the view, in order to get the ViewState object. This then causes clearInitialState() to be called on all the UIComponents, which would not happen under Mojarra. Since state saving has happened in the midst of rendering, it then does not happen after rendering, as it should. The affect is that any state that is changed while rendering, such as from lazily loaded or set state, will then be lost between lifecycles.

      With ICE-8324 and the tabSet, a component work-around was employed, but the larger issue still remains.

      http://jira.icesoft.org/browse/ICE-8324?focusedCommentId=42816&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-42816

        Issue Links

          Activity

          Migration created issue -
          Migration made changes -
          Field Original Value New Value
          Reporter Migration [ remote ] Mark Collette [ mark.collette ]
          Migration made changes -
          Assignee Deryk Sinotte [ deryk.sinotte ]
          Assignee Priority P2 [ 10011 ]
          Mark Collette made changes -
          Link This issue blocks IPCK-418 [ IPCK-418 ]
          Ken Fyten made changes -
          Fix Version/s EE-3.2.0.GA [ 10332 ]
          Assignee Priority P2 [ 10011 ] P1 [ 10010 ]
          Mark Collette made changes -
          Link This issue blocks ICE-8303 [ ICE-8303 ]
          Deryk Sinotte made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Resolution Won't Fix [ 2 ]
          Ken Fyten made changes -
          Link This issue blocks IPCK-418 [ IPCK-418 ]
          Ken Fyten made changes -
          Resolution Won't Fix [ 2 ]
          Status Resolved [ 5 ] Reopened [ 4 ]
          Assignee Priority P1 [ 10010 ] P2 [ 10011 ]
          Ken Fyten made changes -
          Fix Version/s EE-3.2.0.GA [ 10332 ]
          Deryk Sinotte made changes -
          Status Reopened [ 4 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          Ken Fyten made changes -
          Security Private [ 10001 ]
          Ken Fyten made changes -
          Status Resolved [ 5 ] Closed [ 6 ]

            People

            • Assignee:
              Deryk Sinotte
              Reporter:
              Mark Collette
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: