Description
Some requests may be "normal" ServletRequests (eg. javascript resource loading via Servlet like MyFaces Trinidad does).
Therfore FacesContextFactoryImpl must be able to handle ServletRequests instead of throwing a FacesException("Unsupported context type...)
Attached the patch which adds the new ServletFacesContextImpl.
Example:
MyFaces Trinidad Resource Servlet creates a FacesContext by delegating to the parent FacesContextFactory (which is org.apache.portals.bridges.jsf.FacesContextFactoryImpl.)