ICEfaces
  1. ICEfaces
  2. ICE-7340

Regression: (Scopes) view Scope Retained failing

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.1-Beta
    • Fix Version/s: 2.1-Beta2, 3.0
    • Component/s: None
    • Labels:
      None
    • Environment:
      Grimlock Revision# 25872 (First noticed failure)
      Still failing as of Grimlock Revision# 25910

      Application location: \icefaces\samples\core\test\scopes
      Automated scripts: repo\qa\trunk\sample\Icefaces2.0-Samples\Scopes\tests
    • Assignee Priority:
      P1

      Description

      Open application and navigate to: 6. view scope retained test.
      Run test manually or mimic what is happening in the selenium scripts to reproduce failure.

        Activity

        Cruz Miraback created issue -
        Cruz Miraback made changes -
        Field Original Value New Value
        Environment Grimlock Revision# 25872 (First noticed failure)
        Still failing as of Grimlock Revision# 25910

        Application location: \icefaces\samples\core\test\scopes
        Grimlock Revision# 25872 (First noticed failure)
        Still failing as of Grimlock Revision# 25910

        Application location: \icefaces\samples\core\test\scopes
        Automated scripts: repo\qa\trunk\sample\Icefaces2.0-Samples\Scopes\tests
        Salesforce Case []
        Description Open application and navigate to: 6. view scope retained test. Open application and navigate to: 6. view scope retained test.
        Run test manually or mimic what is happening in the selenium scripts to reproduce failure.
        Ken Fyten made changes -
        Salesforce Case []
        Fix Version/s 2.1 [ 10241 ]
        Assignee Priority P1
        Affects Version/s 2.1-Beta [ 10291 ]
        Security Private [ 10001 ]
        Assignee Mircea Toma [ mircea.toma ]
        Hide
        Mircea Toma added a comment -

        I cannot reproduce the issue. The counter value for "View scoped counter – Retained" is preserved after navigation.

        Show
        Mircea Toma added a comment - I cannot reproduce the issue. The counter value for "View scoped counter – Retained" is preserved after navigation.
        Mircea Toma made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Cannot Reproduce [ 5 ]
        Hide
        Mircea Toma added a comment -

        I can reproduce the issue now that I followed the specified steps.

        Show
        Mircea Toma added a comment - I can reproduce the issue now that I followed the specified steps.
        Mircea Toma made changes -
        Resolution Cannot Reproduce [ 5 ]
        Status Resolved [ 5 ] Reopened [ 4 ]
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #25918 Fri Oct 14 09:03:50 MDT 2011 mircea.toma ICE-7340 Modified WindowAndViewIDSetup setup so that the system event listener reacts to PreRenderComponentEvent-s to have its dynamically added components rendered after navigation.
        Files Changed
        Commit graph MODIFY /icefaces2/trunk/icefaces/core/src/main/resources/META-INF/faces-config.xml
        Commit graph MODIFY /icefaces2/trunk/icefaces/core/src/main/java/org/icefaces/impl/event/WindowAndViewIDSetup.java
        Hide
        Mircea Toma added a comment -

        After navigation the components added dynamically by the WindowAndViewIDSetup system event listener are not re-rendered. Because of this the forms don't have the ice.view and ice.window hidden input elements rendered. The filterICEfacesEvents() bridge function relies on these elements to decide if a form is ICEfaces enabled and passthrough the JSF submit events if so. Because the elements are missing the callbacks are not invoked anymore, including the callbacks responsible for the restoration of javax.faces.ViewState hidden input elements in case they miss, thus causing the next form submit to stop sending the view state key causing a state reset on the server.

        Show
        Mircea Toma added a comment - After navigation the components added dynamically by the WindowAndViewIDSetup system event listener are not re-rendered. Because of this the forms don't have the ice.view and ice.window hidden input elements rendered. The filterICEfacesEvents() bridge function relies on these elements to decide if a form is ICEfaces enabled and passthrough the JSF submit events if so. Because the elements are missing the callbacks are not invoked anymore, including the callbacks responsible for the restoration of javax.faces.ViewState hidden input elements in case they miss, thus causing the next form submit to stop sending the view state key causing a state reset on the server.
        Hide
        Mircea Toma added a comment -

        Modified WindowAndViewIDSetup setup so that the system event listener reacts to PreRenderComponentEvent-s to have its dynamically added components rendered after navigation.

        Show
        Mircea Toma added a comment - Modified WindowAndViewIDSetup setup so that the system event listener reacts to PreRenderComponentEvent-s to have its dynamically added components rendered after navigation.
        Mircea Toma made changes -
        Status Reopened [ 4 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Ken Fyten made changes -
        Fix Version/s 2.1-Beta2 [ 10294 ]
        Ken Fyten made changes -
        Security Private [ 10001 ]
        Ken Fyten made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Mircea Toma
            Reporter:
            Cruz Miraback
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: