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

ViewScope doesn't work in non CDI environment

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 4.0.1
    • 5.0.0, 4.1.0-RC2, 4.0.3
    • None
    • None

    Description

      We use Spring Boot with Joinfaces and Myfaces. I noticed that the ViewScope is not working properly. The controller is re-instantiated with every Ajax request on the page. I have tried to analyze the problem and suspect it is because no viewScopeId is created in org.apache.myfaces.view.ViewScopeProxyMap for the non-CDI case. 

      Attachments

        1. demo.zip
          4 kB
          Carsten Dimmek
        2. myfaces-viewmap.zip
          12 kB
          Thomas Andraschko

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            tandraschko Thomas Andraschko
            crusadah Carsten Dimmek
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment