Uploaded image for project: 'MyFaces Trinidad'
  1. MyFaces Trinidad
  2. TRINIDAD-1886

StateManagerImpl.java - popRoot needs to use newInstance in a portlet use case

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

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.2.12-core, 2.0.0-alpha
    • 1.2.14-core , 2.0.0-beta-1
    • Portlet
    • None
    • portlet, any OS

    Description

      The StateManagerImpl$PageState.popRoot method uses the PortletUtils.getPortletViewRoot method to wrap the root object when in a Portlet use case. This causes errors in some bridges because the object returned form the utility method may not be the same as the one injected as the viewRoot by the bridge.

      The fix is to mimic the RI (Mojarra) to call newInstance on the root returned from the application.

      Attachments

        Activity

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

          People

            darkarena Scott O'Bryan
            nhokanson.apache Nathan Hokanson
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment