From ba78cf8cb7ad9751cf365dde87bbc593b4a583c8 Mon Sep 17 00:00:00 2001 From: Jeremy Grelle Date: Thu, 14 Feb 2008 14:56:43 +0000 Subject: [PATCH] Updated to use the latest 2.0M4 enhancements. --- .../booking/flow/main/SearchCriteria.java | 4 +- .../WEB-INF/config/web-application-config.xml | 3 + .../main/webapp/flow/main/displayHotels.xhtml | 72 ++++++++++--------- .../src/main/webapp/flow/main/main.xhtml | 4 +- .../src/main/webapp/flow/main/main.xml | 40 ++++++++++- .../src/main/webapp/template.xhtml | 20 +++--- 6 files changed, 91 insertions(+), 52 deletions(-) diff --git a/spring-webflow-samples/booking-jsf/src/main/java/org/springframework/webflow/samples/booking/flow/main/SearchCriteria.java b/spring-webflow-samples/booking-jsf/src/main/java/org/springframework/webflow/samples/booking/flow/main/SearchCriteria.java index 1674f2be..7078a229 100755 --- a/spring-webflow-samples/booking-jsf/src/main/java/org/springframework/webflow/samples/booking/flow/main/SearchCriteria.java +++ b/spring-webflow-samples/booking-jsf/src/main/java/org/springframework/webflow/samples/booking/flow/main/SearchCriteria.java @@ -45,14 +45,14 @@ public class SearchCriteria implements Serializable { /** * Increase the current page */ - public void nextPageListener(ActionEvent event) { + public void nextPage() { page++; } /** * Decrease the current page */ - public void prevPageListener(ActionEvent event) { + public void prevPage() { page--; } diff --git a/spring-webflow-samples/booking-jsf/src/main/webapp/WEB-INF/config/web-application-config.xml b/spring-webflow-samples/booking-jsf/src/main/webapp/WEB-INF/config/web-application-config.xml index 1c7f4117..41f9403e 100755 --- a/spring-webflow-samples/booking-jsf/src/main/webapp/WEB-INF/config/web-application-config.xml +++ b/spring-webflow-samples/booking-jsf/src/main/webapp/WEB-INF/config/web-application-config.xml @@ -37,6 +37,9 @@ + + + diff --git a/spring-webflow-samples/booking-jsf/src/main/webapp/flow/main/displayHotels.xhtml b/spring-webflow-samples/booking-jsf/src/main/webapp/flow/main/displayHotels.xhtml index 994f286e..3deb7ec0 100644 --- a/spring-webflow-samples/booking-jsf/src/main/webapp/flow/main/displayHotels.xhtml +++ b/spring-webflow-samples/booking-jsf/src/main/webapp/flow/main/displayHotels.xhtml @@ -13,42 +13,44 @@

Hotel Results

Search Criteria: #{searchCriteria}
- +

- - - - Name - #{hotel.name} - - - Address - #{hotel.address} - - - City, State - #{hotel.city}, #{hotel.state}, #{hotel.country} - - - Zip - #{hotel.zip} - - - Action - - - - - - + +
+ + + + Name + #{hotel.name} + + + Address + #{hotel.address} + + + City, State + #{hotel.city}, #{hotel.state}, #{hotel.country} + + + Zip + #{hotel.zip} + + + Action + + + + + + +
+
diff --git a/spring-webflow-samples/booking-jsf/src/main/webapp/flow/main/main.xhtml b/spring-webflow-samples/booking-jsf/src/main/webapp/flow/main/main.xhtml index b8084dff..6ecb6e9c 100755 --- a/spring-webflow-samples/booking-jsf/src/main/webapp/flow/main/main.xhtml +++ b/spring-webflow-samples/booking-jsf/src/main/webapp/flow/main/main.xhtml @@ -21,12 +21,12 @@
- +
Maximum results: - + diff --git a/spring-webflow-samples/booking-jsf/src/main/webapp/flow/main/main.xml b/spring-webflow-samples/booking-jsf/src/main/webapp/flow/main/main.xml index 125ad4f3..76718c1c 100755 --- a/spring-webflow-samples/booking-jsf/src/main/webapp/flow/main/main.xml +++ b/spring-webflow-samples/booking-jsf/src/main/webapp/flow/main/main.xml @@ -10,7 +10,14 @@ - + + + + + + + @@ -22,14 +29,34 @@ - + + + + + + + + + + + + + + + + + + + + @@ -61,7 +88,14 @@ - + + + + + + + diff --git a/spring-webflow-samples/booking-jsf/src/main/webapp/template.xhtml b/spring-webflow-samples/booking-jsf/src/main/webapp/template.xhtml index 43c7e17c..d4ea33c9 100644 --- a/spring-webflow-samples/booking-jsf/src/main/webapp/template.xhtml +++ b/spring-webflow-samples/booking-jsf/src/main/webapp/template.xhtml @@ -6,12 +6,12 @@ Spring Faces: Hotel Booking Sample Application @@ -26,16 +26,16 @@
- foo bar + foo bar
- + - +

The features illustrated in this sample are just the beginning. @@ -49,7 +49,7 @@