MyFaces CODI
  1. MyFaces CODI
  2. EXTCDI-131

Lost ViewAccessScope when re post action with navigation

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.9.3
    • Component/s: None
    • Labels:
      None

      Description

      Post on page 1 calls an action with navigation to page 2. Press reload to trigger a (re)post then ViewAccessScope get lost.

      ViewAccessConversationExpirationEvaluator#isExpired causes the problem.

        Issue Links

          Activity

          Hide
          Gerhard Petracek added a comment -

          here it works with the default window-handler (ServerSideWindowHandler)

          Show
          Gerhard Petracek added a comment - here it works with the default window-handler (ServerSideWindowHandler)
          Hide
          Marcus Büttner added a comment -

          Ok, I've think I found the problem.

          The WindowContextManagerObserver sets the new viewId after RestoreView (PhaseEvent). MyFaces does a visitTree when creating view tree. Some components like UIRepeat touch the model before this WindowContextManagerObserver is called for setting the new viewId. Therefore the ViewAccessConversationExpirationEvaluator says that the scope is expired.

          I can adjust the problem if I use a <ui:repeat> on page1.

          Show
          Marcus Büttner added a comment - Ok, I've think I found the problem. The WindowContextManagerObserver sets the new viewId after RestoreView (PhaseEvent). MyFaces does a visitTree when creating view tree. Some components like UIRepeat touch the model before this WindowContextManagerObserver is called for setting the new viewId. Therefore the ViewAccessConversationExpirationEvaluator says that the scope is expired. I can adjust the problem if I use a <ui:repeat> on page1.

            People

            • Assignee:
              Gerhard Petracek
              Reporter:
              Marcus Büttner
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development