Sample polishing.

This commit is contained in:
Erwin Vervaet
2007-01-17 09:24:38 +00:00
parent 030f8fe13e
commit e7129fcaef
5 changed files with 27 additions and 32 deletions

View File

@@ -3,8 +3,8 @@
# The location of the common build system
common.build.dir=${basedir}/../../common-build
javac.source=1.3
javac.target=1.3
javac.source=1.5
javac.target=1.5
# Do not publish built artifacts to the integration repository
do.publish=false

View File

@@ -19,7 +19,7 @@ import java.util.Map;
public interface RateService {
public Map getCountries();
public Map<String, String> getCountries();
public Map getPackageTypes();

View File

@@ -21,15 +21,15 @@ import java.util.Map;
public class StubRateService implements RateService {
public Map getCountries() {
Map countries = new HashMap();
public Map<String, String> getCountries() {
Map<String, String> countries = new HashMap<String, String>();
countries.put("US", "United States");
countries.put("CA", "Canada");
return countries;
}
public Map getPackageTypes() {
Map packageTypes = new HashMap();
public Map<String, String> getPackageTypes() {
Map<String, String> packageTypes = new HashMap<String, String>();
packageTypes.put("1", "Letter Envelope");
packageTypes.put("2", "Express Box");
packageTypes.put("3", "Tube");

View File

@@ -40,11 +40,4 @@
<property name="prefix" value="/WEB-INF/jsp/" />
<property name="suffix" value=".jsp" />
</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>

View File

@@ -16,25 +16,27 @@
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
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>
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.
</p>
<P>
The techniques demonstrated are:
</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>
<HR>