You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
JSF 2 introduces a ResourceHandler API responsible for serving resources (images, javascript, css files) packaged relative to the web application root under /resources/<resourceIdentifier> or on the classpath under META-INF/resources/<resourceIdentifier>. Resources can be added on a page using the ResourceHandler API, an @ResourceDependency annotation, or through an outputScript tag in the view.
Resource requests are routed back to the servlet that's serving application request and take the form of:
/myapp/myservlet/javax.faces.resources/<resourceIdentifier>
In a Spring Web Flow application, resource requests would come back to the Spring MVC DispatcherServlet. Currently there is no support for handling such requests. The purpose of this ticket is to provide that support by delegating to the ResourceHandler implementation of the JSF runtime. It should also be possible to delegate JSF 2 resource requests to the resource handling mechanism planned for Spring 3.1 (SPR-7116, SPR-6641).
Support for processing JSF 2 resource requests has been added.
A FacesJsfResourceRequestHandler is provided, which simplye delegates to the JSF 2 ResourceHandler. The handler must be mapped to /javax.faces.resource/** using a SimpleUrlHandlerMapping and a HttpRequestHandlerAdapter must be declared in the Spring MVC DispatcherServlet application context.
For the time being this configuration must be added as is shown in the webmvc-config.xml file of the booking-faces sample. A faces namespace element will be provided separately to minimize this configuration.
Rossen Stoyanchev opened SWF-1366 and commented
JSF 2 introduces a ResourceHandler API responsible for serving resources (images, javascript, css files) packaged relative to the web application root under /resources/<resourceIdentifier> or on the classpath under META-INF/resources/<resourceIdentifier>. Resources can be added on a page using the ResourceHandler API, an
@ResourceDependency
annotation, or through an outputScript tag in the view.Resource requests are routed back to the servlet that's serving application request and take the form of:
/myapp/myservlet/javax.faces.resources/<resourceIdentifier>
In a Spring Web Flow application, resource requests would come back to the Spring MVC DispatcherServlet. Currently there is no support for handling such requests. The purpose of this ticket is to provide that support by delegating to the ResourceHandler implementation of the JSF runtime. It should also be possible to delegate JSF 2 resource requests to the resource handling mechanism planned for Spring 3.1 (SPR-7116, SPR-6641).
Affects: 2.1.1
Issue Links:
("is depended on by")
The text was updated successfully, but these errors were encountered: