Sample polishing.
This commit is contained in:
@@ -3,8 +3,8 @@
|
|||||||
# The location of the common build system
|
# The location of the common build system
|
||||||
common.build.dir=${basedir}/../../common-build
|
common.build.dir=${basedir}/../../common-build
|
||||||
|
|
||||||
javac.source=1.3
|
javac.source=1.5
|
||||||
javac.target=1.3
|
javac.target=1.5
|
||||||
|
|
||||||
# Do not publish built artifacts to the integration repository
|
# Do not publish built artifacts to the integration repository
|
||||||
do.publish=false
|
do.publish=false
|
||||||
@@ -19,7 +19,7 @@ import java.util.Map;
|
|||||||
|
|
||||||
public interface RateService {
|
public interface RateService {
|
||||||
|
|
||||||
public Map getCountries();
|
public Map<String, String> getCountries();
|
||||||
|
|
||||||
public Map getPackageTypes();
|
public Map getPackageTypes();
|
||||||
|
|
||||||
|
|||||||
@@ -21,15 +21,15 @@ import java.util.Map;
|
|||||||
|
|
||||||
public class StubRateService implements RateService {
|
public class StubRateService implements RateService {
|
||||||
|
|
||||||
public Map getCountries() {
|
public Map<String, String> getCountries() {
|
||||||
Map countries = new HashMap();
|
Map<String, String> countries = new HashMap<String, String>();
|
||||||
countries.put("US", "United States");
|
countries.put("US", "United States");
|
||||||
countries.put("CA", "Canada");
|
countries.put("CA", "Canada");
|
||||||
return countries;
|
return countries;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Map getPackageTypes() {
|
public Map<String, String> getPackageTypes() {
|
||||||
Map packageTypes = new HashMap();
|
Map<String, String> packageTypes = new HashMap<String, String>();
|
||||||
packageTypes.put("1", "Letter Envelope");
|
packageTypes.put("1", "Letter Envelope");
|
||||||
packageTypes.put("2", "Express Box");
|
packageTypes.put("2", "Express Box");
|
||||||
packageTypes.put("3", "Tube");
|
packageTypes.put("3", "Tube");
|
||||||
|
|||||||
@@ -40,11 +40,4 @@
|
|||||||
<property name="prefix" value="/WEB-INF/jsp/" />
|
<property name="prefix" value="/WEB-INF/jsp/" />
|
||||||
<property name="suffix" value=".jsp" />
|
<property name="suffix" value=".jsp" />
|
||||||
</bean>
|
</bean>
|
||||||
|
|
||||||
<!-- Resolves message codes to internationalized messages -->
|
|
||||||
<bean id="messageSource" class="org.springframework.context.support.ResourceBundleMessageSource">
|
|
||||||
<property name="basename">
|
|
||||||
<value>MessageResources</value>
|
|
||||||
</property>
|
|
||||||
</bean>
|
|
||||||
</beans>
|
</beans>
|
||||||
@@ -16,25 +16,27 @@
|
|||||||
wizard embedded in a zone of this page that makes Ajax calls to the server to
|
wizard embedded in a zone of this page that makes Ajax calls to the server to
|
||||||
participate in a executing flow. To complete processing, this wizard takes
|
participate in a executing flow. To complete processing, this wizard takes
|
||||||
the details about a shipment and calls a service to get the shipping rate.
|
the details about a shipment and calls a service to get the shipping rate.
|
||||||
<p>
|
|
||||||
The techniques demonstrated are:
|
|
||||||
<UL>
|
|
||||||
<li>
|
|
||||||
Using a JavaScript component to submit regular forms through an AJAX request, and inserting the HTML
|
|
||||||
received from the server into a DIV tag.
|
|
||||||
</li>
|
|
||||||
<LI>
|
|
||||||
Using the "_flowId" request parameter to let the view tell the web
|
|
||||||
flow controller which flow needs to be started.
|
|
||||||
</LI>
|
|
||||||
<LI>
|
|
||||||
Implementing a wizard using Spring Web Flow.
|
|
||||||
</LI>
|
|
||||||
</UL>
|
|
||||||
</P>
|
</P>
|
||||||
<p>
|
<P>
|
||||||
Note: this sample has been tested successfully on Internet Explorer 6 and Safari 2.0.3. There are currently known Javascript issues with use on Firefox 1.5.
|
The techniques demonstrated are:
|
||||||
</p>
|
</P>
|
||||||
|
<UL>
|
||||||
|
<li>
|
||||||
|
Using a JavaScript component to submit regular forms through an AJAX request, and inserting the HTML
|
||||||
|
received from the server into a DIV tag.
|
||||||
|
</li>
|
||||||
|
<LI>
|
||||||
|
Using the "_flowId" request parameter to let the view tell the web
|
||||||
|
flow controller which flow needs to be started.
|
||||||
|
</LI>
|
||||||
|
<LI>
|
||||||
|
Implementing a wizard using Spring Web Flow.
|
||||||
|
</LI>
|
||||||
|
</UL>
|
||||||
|
<P>
|
||||||
|
Note: this sample has been tested successfully on Internet Explorer 6 and 7, Firefox 2 and Safari 2.
|
||||||
|
There are currently known Javascript issues with use on Firefox 1.5.
|
||||||
|
</P>
|
||||||
</DIV>
|
</DIV>
|
||||||
|
|
||||||
<HR>
|
<HR>
|
||||||
|
|||||||
Reference in New Issue
Block a user