Uploaded image for project: 'MyFaces CODI'
  1. MyFaces CODI
  2. EXTCDI-222

View with viewParameter remove backing-beans from the context in Restore-View-Phase when setting PROJECT_STAGE to Development

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • None
    • None
    • Core, JEE-JSF20-Module
    • None
    • Tested on Jetty and IBM WebSphere 8

    Description

      I use the ViewAccessScope from CODI.
      If I create a bean with viewAccessScope and link from a view (where the bean is called) to another view (where the bean is accessed too) and then go back to the original view, I expect, that the same instance of the bean is used. But at the time I go back to the original view in the Restore-View-Phase the instance of the bean is destroyed and a new one is created.

      This behaviour only happen if I use the PROJECT_STAGE=Development AND implement a viewParameter to the view. So I think, that in Development-Stage the <metadata>-Tag or the <viewParameter>-Tag do something that brings the BeanManager to handle the beans in abnormal way.

      There is a sample project at https://bitbucket.org/os890/myfaces-mailing-list/src/56d0ef922d12

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              srudolf Steven Rudolf
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: