Uploaded image for project: 'MyFaces Portlet Bridge'
  1. MyFaces Portlet Bridge
  2. PORTLETBRIDGE-187

Why does the 3.0.0 implementation of PortletFacesContextFactoryImpl differ from the one in 2.0?

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

Details

    • Question
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 3.0.0-alpha
    • None
    • Impl
    • None

    Description

      This seems like an impossible thing to do if there is no other PortletFacesContext implementations available. Is it really correct to try and lookup another FacesContext if we are in a portlet environment?

      // if in portlet environment – do a portlet container neutral test
      // first in case we are packaged in a web app that isn't deployed
      // on a portlet container/as a portlet. Note: can't use the BridgeUtil
      // method as that call requires the facesContext to exist.
      FacesContext fc = getWrapped().getFacesContext(context, request, response, lifecycle);

      if(ExternalContextUtils.isPortlet(fc.getExternalContext()))

      { fc = new FacesContextImpl(fc); }

      return fc;

      regards,
      Hampus

      Attachments

        Activity

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

          People

            mike_freedman Michael Freedman
            hampe98 Hampus Wingren

            Dates

              Created:
              Updated:

              Slack

                Issue deployment