Uploaded image for project: 'MyFaces Core'
  1. MyFaces Core
  2. MYFACES-3967

View Pooling - ViewScope missing for Static Structure Views

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.2.0, 2.2.7
    • Fix Version/s: 2.2.8
    • Component/s: General
    • Labels:
      None

      Description

      See myfaces-users thread on the topic. http://markmail.org/thread/3enmbvaf47cm2zdn

      We needed to disable view pooling for certain views because we noticed issues with "static structure" views when using ViewScope. Our ViewScope beans are available in our controller code, but are no longer available during the RenderResponse phase in our xhtml pages - via expression language lookups.

      • On the very first request to the view (before its placed in the pool), the
        state is applied correctly - but then every subsequent request to the pooled
        view doesn't have the correct view state.
      • It looks like the view state hasn't been correctly applied on the view
        after its retrieved from the pool.

      Ways we've been able to work around this issue:

      • If we disable view pooling for these views, then the beans are correctly
        available in ViewScope.
      • We don't see this issue on any of our "dynamic structure" views - in fact,
        if we convert the static structure view to a dynamic structure view (via an
        extra ui:include with EL, etc), then the view state is mapped correctly and the viewscope beans are available.

        Attachments

          Activity

            People

            • Assignee:
              lu4242 Leonardo Uribe
              Reporter:
              kulinski Chris Kulinski
            • Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: