ICEfaces
  1. ICEfaces
  2. ICE-5974

Portlet allow Servlet JSF processing

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0-Beta1
    • Fix Version/s: 2.0-Beta2, 2.0.0
    • Component/s: Framework
    • Labels:
      None
    • Environment:
      ICEfaces 2.0, PortletFaces bridge

      Description


      When a resource URL such as /icefaces/resource/MjAyNjQwNTE1MA==/icefaces.jpg

      is obtained via the call

      facesContext.getApplication().getViewHandler().getResourceURL(context, path)

      the resulting URL:

      http://localhost:8080/component-showcase-portlet/icefaces/resource/MjAyNjQwNTE1MA==/icefaces.jpg

      Cannot be fetched from the Faces Servlet (in the example mapped to /icefaces/*):

      java.lang.ClassCastException: org.apache.catalina.core.ApplicationContextFacade cannot be cast to javax.portlet.PortletContext
      org.portletfaces.bridge.context.ExternalContextFactoryImpl.getExternalContext(ExternalContextFactoryImpl.java:32)
      com.sun.faces.context.FacesContextFactoryImpl.getFacesContext(FacesContextFactoryImpl.java:89)
      javax.faces.webapp.FacesServlet.service(FacesServlet.java:298)

        Activity

          People

          • Assignee:
            Deryk Sinotte
            Reporter:
            Ted Goddard
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: