diff --git a/spring-webflow-reference/src/portlet.xml b/spring-webflow-reference/src/portlet.xml index dc3117a9..ae7f5254 100644 --- a/spring-webflow-reference/src/portlet.xml +++ b/spring-webflow-reference/src/portlet.xml @@ -7,7 +7,7 @@
booking-portlet-mvc sample application is a good reference for using Web Flow within a portlet.
This application is a simplified travel site that allows users to search for and book hotel rooms.
web.xml file to dispatch request to the portlet container.
diff --git a/spring-webflow-reference/src/spring-faces.xml b/spring-webflow-reference/src/spring-faces.xml
index ddf5e20e..c911211c 100644
--- a/spring-webflow-reference/src/spring-faces.xml
+++ b/spring-webflow-reference/src/spring-faces.xml
@@ -11,7 +11,7 @@
2.2 the JSF integration is supported with JSF 1.2 and JSF 2.0 including Sun Mojarra and Apache
MyFaces. Please, note however that JSF 2 partial state saving is not yet supported with
Apache MyFaces and needs to be disabled with the javax.faces.PARTIAL_STATE_SAVING
- context parameter in web.xml
+ context parameter in web.xml.
swf-booking-faces sample in the Spring Web Flow distribution
is built on JSF 2 and PrimeFaces components.
ResourceServlet is deprected in favor of the Spring 3 resources
+ element, it is still required for use with JSF 1.2 Spring Faces components.
+ ResourceServlet to serve web resources such as JavaScript and CSS files from jar files, as well as the webapp root directory.
+ Spring JS provides a generic ResourceServlet to serve web resources such as JavaScript and CSS files from jar files,
+ as well as the webapp root directory.
This servlet provides a convenient way to serve Spring.js files to your pages.
To deploy this servlet, declare the following in web.xml:
ResourceServlet (see the
+ DispatcherSevlet without the need for a separate ResourceServlet.
+ Here is the relevant portion of the Spring MVC configuration in
+ the mvc-booking sample:
+ /resources to resources found under
+ /META-INF/web-resources on the classpath. That's where Spring JavaScript resources
+ are bundled. However, you can modify the location attribute in the above configuration in order
+ to serve resources from any classpath or web application relative location.
+ Spring.js is /myapp/resources/spring/Spring.js.
+ If your DispatcherServlet was instead mapped to /main/* then the full
+ URL would be /myapp/main/resources/spring/Spring.js.
+