polish
This commit is contained in:
@@ -268,7 +268,7 @@
|
||||
<programlisting language="xml"><![CDATA[
|
||||
<on-render>
|
||||
<evaluate expression="bookingService.findBookings(currentUser.name)"
|
||||
result="viewScope.bookings" result-type="dataModel" />
|
||||
result="viewScope.bookings" result-type="dataModel" />
|
||||
</on-render>]]>
|
||||
</programlisting>
|
||||
<para>
|
||||
@@ -335,7 +335,7 @@
|
||||
<view-state id="reviewHotels">
|
||||
<on-render>
|
||||
<evaluate expression="bookingService.findHotels(searchCriteria)"
|
||||
result="viewScope.hotels" result-type="dataModel" />
|
||||
result="viewScope.hotels" result-type="dataModel" />
|
||||
</on-render>
|
||||
</view-state>]]>
|
||||
</programlisting>
|
||||
@@ -494,7 +494,7 @@
|
||||
<view-state id="reviewHotels">
|
||||
<on-render>
|
||||
<evaluate expression="bookingService.findHotels(searchCriteria)"
|
||||
result="viewScope.hotels" result-type="dataModel" />
|
||||
result="viewScope.hotels" result-type="dataModel" />
|
||||
</on-render>
|
||||
<transition on="next">
|
||||
<evaluate expression="searchCriteria.nextPage()" />
|
||||
|
||||
@@ -15,7 +15,8 @@
|
||||
<sect1 id="spring-js-resource-servlet">
|
||||
<title>Serving Javascript Resources</title>
|
||||
<para>
|
||||
Spring JS provides a generic <code>ResourceServlet</code> to serve web resources such as CSS and JavaScript files from jar files and the webapp root directory.
|
||||
Spring JS provides a generic <code>ResourceServlet</code> 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 <code>web.xml</code>:
|
||||
</para>
|
||||
<programlisting><![CDATA[
|
||||
@@ -41,7 +42,7 @@
|
||||
<para>
|
||||
Using Spring Javascript in a page requires including the underlying toolkit as normal,
|
||||
the <code>Spring.js</code> base interface file, and the <code>Spring-(library implementation).js</code> file for the underlying toolkit.
|
||||
As an example, the following script includes obtain the Dojo implementation of Spring.js from the <code>ResourceServlet</code>:
|
||||
As an example, the following includes obtain the Dojo implementation of Spring.js using the <code>ResourceServlet</code>:
|
||||
</para>
|
||||
<programlisting language="xml"><![CDATA[
|
||||
<script type="text/javascript" src="<c:url value="/resources/dojo/dojo.js" />"> </script>
|
||||
|
||||
Reference in New Issue
Block a user