javaserverfaces
  1. javaserverfaces
  2. JAVASERVERFACES-1

ServletContext/PortletContext incompatibility

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: current
    • Fix Version/s: 1.0
    • Component/s: www
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: All

    • Issuezilla Id:
      1

      Description

      In com.sun.faces.application.ApplicationAssociate there are assumptions on
      context object being ServletContext. in case of FacesPortlet use,
      PortletContext object is passed here. Not sure what's the solution:

      1. return ServletContext instead of PortletContext in
      com.sun.faces.portlet.ExternalContextImpl.getContext
      2. remove ServletContext assumption in ApplicationAssociate

      now the result is ClassCastException in ApplicationAssociate.getInstance. i've
      made temporary patch as in p.1 and it seems to work...

      i'm using Novell Extend Director as portlet container. maybe in other
      containers PortletContext implementation class implements ServletContext as
      well and this might work. however, afaik it's not required in Portlet API
      specification.

        Activity

          People

          • Assignee:
            javaserverfaces-issues
            Reporter:
            jesion
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: