diff --git a/spring-webflow-reference/src/spring-faces.xml b/spring-webflow-reference/src/spring-faces.xml index 5a8c09f3..57681143 100644 --- a/spring-webflow-reference/src/spring-faces.xml +++ b/spring-webflow-reference/src/spring-faces.xml @@ -106,7 +106,7 @@ - Resources Servlet + Resource Servlet org.springframework.js.resource.ResourceServlet 0 diff --git a/spring-webflow-reference/src/spring-js.xml b/spring-webflow-reference/src/spring-js.xml index 3d06c897..8e45ccdd 100644 --- a/spring-webflow-reference/src/spring-js.xml +++ b/spring-webflow-reference/src/spring-js.xml @@ -12,16 +12,36 @@ In addition, the JSF components provided as part of the Spring Faces library build on Spring.js. + + Serving Javascript Resources + + Spring JS provides a generic ResourceServlet to serve web resources such as CSS and JavaScript files from jar files and the webapp root directory. + To deploy this servlet, declare the following in web.xml: + + + + Resource Servlet + org.springframework.js.resource.ResourceServlet + + + + + Resources Servlet + /resources/* +]]> + + Including Spring Javascript in a Page - Spring Javascript is designed such that an implementation of its API can be built for any of the popular Javascript toolkits. - The initial implementation provided is for the Dojo toolkit. + Spring JS is designed such that an implementation of its API can be built for any of the popular Javascript toolkits. + The initial implementation of Spring.js builds on the Dojo toolkit. Using Spring Javascript in a page requires including the underlying toolkit as normal, the Spring.js base interface file, and the Spring-(library implementation).js file for the underlying toolkit. - As an example, the following script includes obtain the Dojo implementation of Spring.js: + As an example, the following script includes obtain the Dojo implementation of Spring.js from the ResourceServlet: "> @@ -30,7 +50,7 @@ When using the widget system of an underlying library, typically you must also include some CSS resources to obtain the desired look and feel. - For the Dojo-based reference application, Dojo's tundra.css is included: + For the booking-mvc reference application, Dojo's tundra.css is included: " />]]>