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

          Marcus Büttner created issue -
          Mark Struberg made changes -
          Field Original Value New Value
          Assignee Mark Struberg [ struberg ]
          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.
          Gerhard Petracek made changes -
          Link This issue relates to EXTCDI-137 [ EXTCDI-137 ]
          Gerhard Petracek made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Fix Version/s 0.9.3 [ 12316038 ]
          Resolution Fixed [ 1 ]
          Gerhard Petracek made changes -
          Link This issue breaks EXTCDI-148 [ EXTCDI-148 ]
          Gerhard Petracek made changes -
          Assignee Mark Struberg [ struberg ] Gerhard Petracek [ gpetracek ]
          Gerhard Petracek made changes -
          Status Resolved [ 5 ] Closed [ 6 ]

            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