From 87308d65652d81fe5a415f5d4c8007a062b55106 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Fern=C3=A1ndez?= Date: Thu, 13 Sep 2012 00:08:42 +0200 Subject: [PATCH 01/22] Updated dependency versions: * Spring Framework to 3.1.2 * Spring Security to 3.1.2 Added dependencies: * Thymeleaf 2.0.14-SNAPSHOT * Thymeleaf-extras-Tiles2 1.0.0-beta3-SNAPSHOT * Thymeleaf-extras-SpringSecurity3 1.0.0-beta2-SNAPSHOT --- booking-mvc/pom.xml | 131 ++++++++++-------- .../WEB-INF/config/data-access-config.xml | 6 +- .../WEB-INF/config/web-application-config.xml | 4 +- .../webapp/WEB-INF/config/webflow-config.xml | 6 +- .../webapp/WEB-INF/config/webmvc-config.xml | 4 +- 5 files changed, 87 insertions(+), 64 deletions(-) diff --git a/booking-mvc/pom.xml b/booking-mvc/pom.xml index f41fb3f..c64b0cf 100644 --- a/booking-mvc/pom.xml +++ b/booking-mvc/pom.xml @@ -1,29 +1,52 @@ - 4.0.0 - org.springframework.webflow.samples - booking-mvc - war - Hotel Booking : Spring MVC + Web Flow + JSP - 1.0.0.BUILD-SNAPSHOT + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> + 4.0.0 + org.springframework.webflow.samples + booking-mvc + war + Hotel Booking : Spring MVC + Web Flow + JSP + 1.0.0.BUILD-SNAPSHOT 3.2.1.RELEASE 3.1.3.RELEASE 2.4.0.BUILD-SNAPSHOT 1.5.10 + 2.0.14-SNAPSHOT + 1.0.0-beta3-SNAPSHOT + 1.0.0-beta2-SNAPSHOT - - - spring-repository - Spring project snapshots, milestones, and releases - http://repo.springsource.org/snapshot - - + + + spring-repository + Spring project snapshots, milestones, and releases + http://repo.springsource.org/snapshot + + + + org.thymeleaf + thymeleaf + ${thymeleaf-version} + + + org.thymeleaf + thymeleaf-spring3 + ${thymeleaf-version} + + + org.thymeleaf.extras + thymeleaf-extras-tiles2 + ${thymeleaf-extras-tiles2-version} + + + org.thymeleaf.extras + thymeleaf-extras-springsecurity3 + ${thymeleaf-extras-springsecurity3-version} + org.springframework @@ -233,44 +256,44 @@ - - booking-mvc - - - org.apache.maven.plugins - maven-compiler-plugin - 2.3.2 - - 1.6 - 1.6 - - - - org.apache.maven.plugins - maven-surefire-plugin - 2.12 - - junit:junit - - **/*Tests.java - - - - - org.apache.tomcat.maven - tomcat7-maven-plugin - 2.0-SNAPSHOT - - - org.apache.maven.plugins - maven-eclipse-plugin - 2.8 - - true - false - 2.0 - - - - + + booking-mvc + + + org.apache.maven.plugins + maven-compiler-plugin + 2.3.2 + + 1.6 + 1.6 + + + + org.apache.maven.plugins + maven-surefire-plugin + 2.12 + + junit:junit + + **/*Tests.java + + + + + org.apache.tomcat.maven + tomcat7-maven-plugin + 2.0-SNAPSHOT + + + org.apache.maven.plugins + maven-eclipse-plugin + 2.8 + + true + false + 2.0 + + + + diff --git a/booking-mvc/src/main/webapp/WEB-INF/config/data-access-config.xml b/booking-mvc/src/main/webapp/WEB-INF/config/data-access-config.xml index 1a6d00f..c7b9d8b 100644 --- a/booking-mvc/src/main/webapp/WEB-INF/config/data-access-config.xml +++ b/booking-mvc/src/main/webapp/WEB-INF/config/data-access-config.xml @@ -2,9 +2,9 @@ + xsi:schemaLocation=" + http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.1.xsd + http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-3.1.xsd"> diff --git a/booking-mvc/src/main/webapp/WEB-INF/config/web-application-config.xml b/booking-mvc/src/main/webapp/WEB-INF/config/web-application-config.xml index 5791b17..10ebcf5 100644 --- a/booking-mvc/src/main/webapp/WEB-INF/config/web-application-config.xml +++ b/booking-mvc/src/main/webapp/WEB-INF/config/web-application-config.xml @@ -3,8 +3,8 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context" xsi:schemaLocation=" - http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd - http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd"> + http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.1.xsd + http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.1.xsd"> diff --git a/booking-mvc/src/main/webapp/WEB-INF/config/webflow-config.xml b/booking-mvc/src/main/webapp/WEB-INF/config/webflow-config.xml index f6589f7..edb4fdb 100644 --- a/booking-mvc/src/main/webapp/WEB-INF/config/webflow-config.xml +++ b/booking-mvc/src/main/webapp/WEB-INF/config/webflow-config.xml @@ -2,9 +2,9 @@ + xsi:schemaLocation=" + http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.1.xsd + http://www.springframework.org/schema/webflow-config http://www.springframework.org/schema/webflow-config/spring-webflow-config-2.3.xsd"> diff --git a/booking-mvc/src/main/webapp/WEB-INF/config/webmvc-config.xml b/booking-mvc/src/main/webapp/WEB-INF/config/webmvc-config.xml index 1628c08..2d753ab 100644 --- a/booking-mvc/src/main/webapp/WEB-INF/config/webmvc-config.xml +++ b/booking-mvc/src/main/webapp/WEB-INF/config/webmvc-config.xml @@ -3,8 +3,8 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:mvc="http://www.springframework.org/schema/mvc" xsi:schemaLocation=" - http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc-3.0.xsd - http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd"> + http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc-3.1.xsd + http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-1.0.xsd"> From be645eb31f036bb8e213dcffc37438f80431dfbb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Fern=C3=A1ndez?= Date: Thu, 13 Sep 2012 00:39:38 +0200 Subject: [PATCH 02/22] Refactored dependencies. * Reformatted code. Removed unnecessary exclude clauses. * Upgraded Apache Tiles dependency to version 2.2.2 --- booking-mvc/pom.xml | 34 ++++++++-------------------------- 1 file changed, 8 insertions(+), 26 deletions(-) diff --git a/booking-mvc/pom.xml b/booking-mvc/pom.xml index c64b0cf..dbcee35 100644 --- a/booking-mvc/pom.xml +++ b/booking-mvc/pom.xml @@ -27,6 +27,7 @@ + org.thymeleaf thymeleaf @@ -52,13 +53,6 @@ org.springframework spring-webmvc ${springframework-version} - - - - commons-logging - commons-logging - - org.springframework @@ -85,11 +79,6 @@ spring-security-web ${springsecurity-version} - - - commons-logging - commons-logging - org.springframework * @@ -112,11 +101,6 @@ spring-security-config ${springsecurity-version} - - - commons-logging - commons-logging - org.springframework * @@ -197,15 +181,13 @@ org.apache.tiles - tiles-jsp - 2.1.3 - - - - commons-logging - commons-logging-api - - + tiles-core + 2.2.2 + + + org.apache.tiles + tiles-api + 2.2.2 From c836b8f792aab36fd62713dc1b8509a11fa1d73d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Fern=C3=A1ndez?= Date: Thu, 13 Sep 2012 00:56:26 +0200 Subject: [PATCH 03/22] Refactored Tiles version in pom.xml --- booking-mvc/pom.xml | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/booking-mvc/pom.xml b/booking-mvc/pom.xml index dbcee35..211dcf7 100644 --- a/booking-mvc/pom.xml +++ b/booking-mvc/pom.xml @@ -16,6 +16,7 @@ 2.0.14-SNAPSHOT 1.0.0-beta3-SNAPSHOT 1.0.0-beta2-SNAPSHOT + 2.2.2 @@ -178,17 +179,34 @@ jstl 1.2 + org.apache.tiles tiles-core - 2.2.2 + ${tiles-version} org.apache.tiles tiles-api - 2.2.2 + ${tiles-version} + + org.apache.tiles + tiles-template + ${tiles-version} + + + org.apache.tiles + tiles-servlet + ${tiles-version} + + + org.apache.tiles + tiles-jsp + ${tiles-version} + + org.hibernate From 7fec97b1d54608ba0ebe1d111aea9eaa0069b14b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Fern=C3=A1ndez?= Date: Thu, 13 Sep 2012 01:06:12 +0200 Subject: [PATCH 04/22] Applied Thymeleaf configuration * Applied Thymeleaf configuration and Template Engine creation to webmvc-config configuration file. * Made application run through Thymeleaf's own Tiles infrastructure. --- .../webapp/WEB-INF/config/webmvc-config.xml | 36 +++++++++++++++++++ .../webapp/WEB-INF/hotels/booking/views.xml | 8 ++--- .../src/main/webapp/WEB-INF/hotels/views.xml | 12 +++---- .../src/main/webapp/WEB-INF/layouts/views.xml | 6 ++-- booking-mvc/src/main/webapp/WEB-INF/views.xml | 16 ++++----- 5 files changed, 57 insertions(+), 21 deletions(-) diff --git a/booking-mvc/src/main/webapp/WEB-INF/config/webmvc-config.xml b/booking-mvc/src/main/webapp/WEB-INF/config/webmvc-config.xml index 2d753ab..015df08 100644 --- a/booking-mvc/src/main/webapp/WEB-INF/config/webmvc-config.xml +++ b/booking-mvc/src/main/webapp/WEB-INF/config/webmvc-config.xml @@ -46,4 +46,40 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + /WEB-INF/**/views.xml + + + + diff --git a/booking-mvc/src/main/webapp/WEB-INF/hotels/booking/views.xml b/booking-mvc/src/main/webapp/WEB-INF/hotels/booking/views.xml index 3e1ee8b..dd3cb6d 100644 --- a/booking-mvc/src/main/webapp/WEB-INF/hotels/booking/views.xml +++ b/booking-mvc/src/main/webapp/WEB-INF/hotels/booking/views.xml @@ -5,12 +5,12 @@ - - + + - - + + diff --git a/booking-mvc/src/main/webapp/WEB-INF/hotels/views.xml b/booking-mvc/src/main/webapp/WEB-INF/hotels/views.xml index 42e7bc0..b3317e9 100644 --- a/booking-mvc/src/main/webapp/WEB-INF/hotels/views.xml +++ b/booking-mvc/src/main/webapp/WEB-INF/hotels/views.xml @@ -5,17 +5,17 @@ - + - - - + + + - - + + diff --git a/booking-mvc/src/main/webapp/WEB-INF/layouts/views.xml b/booking-mvc/src/main/webapp/WEB-INF/layouts/views.xml index 0f94b92..a2a5039 100644 --- a/booking-mvc/src/main/webapp/WEB-INF/layouts/views.xml +++ b/booking-mvc/src/main/webapp/WEB-INF/layouts/views.xml @@ -1,10 +1,10 @@ + "-//Apache Software Foundation//DTD Tiles Configuration 2.1//EN" + "http://tiles.apache.org/dtds/tiles-config_2_1.dtd"> - + diff --git a/booking-mvc/src/main/webapp/WEB-INF/views.xml b/booking-mvc/src/main/webapp/WEB-INF/views.xml index 96200a1..f6c7327 100644 --- a/booking-mvc/src/main/webapp/WEB-INF/views.xml +++ b/booking-mvc/src/main/webapp/WEB-INF/views.xml @@ -1,20 +1,20 @@ + "-//Apache Software Foundation//DTD Tiles Configuration 2.1//EN" + "http://tiles.apache.org/dtds/tiles-config_2_1.dtd"> - - + + - - + + - - + + From d24f40ddf3dff97aaf9ffc2ca21355aeb23ac68a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Fern=C3=A1ndez?= Date: Thu, 13 Sep 2012 01:11:33 +0200 Subject: [PATCH 05/22] Added log configuration entry for thymeleaf. --- booking-mvc/src/main/resources/log4j.xml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/booking-mvc/src/main/resources/log4j.xml b/booking-mvc/src/main/resources/log4j.xml index b4e9ad1..a24fc28 100644 --- a/booking-mvc/src/main/resources/log4j.xml +++ b/booking-mvc/src/main/resources/log4j.xml @@ -38,7 +38,11 @@ - + + + + + From 0e1a2453e0be0d44a803a0017c30fa6946582838 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Fern=C3=A1ndez?= Date: Thu, 13 Sep 2012 01:15:10 +0200 Subject: [PATCH 06/22] Added first Thymeleaf template to application (intro.html) Also modified template resolver configuration to remove ".html" suffix so that it is specified in Tiles definition names and therefore is easy to differentiate in case when the HTML has the same name as a definition (thus avoiding infinite recursion). --- .../webapp/WEB-INF/config/webmvc-config.xml | 1 - .../src/main/webapp/WEB-INF/intro.html | 29 +++++++++++++++++++ booking-mvc/src/main/webapp/WEB-INF/views.xml | 2 +- 3 files changed, 30 insertions(+), 2 deletions(-) create mode 100644 booking-mvc/src/main/webapp/WEB-INF/intro.html diff --git a/booking-mvc/src/main/webapp/WEB-INF/config/webmvc-config.xml b/booking-mvc/src/main/webapp/WEB-INF/config/webmvc-config.xml index 015df08..fd03282 100644 --- a/booking-mvc/src/main/webapp/WEB-INF/config/webmvc-config.xml +++ b/booking-mvc/src/main/webapp/WEB-INF/config/webmvc-config.xml @@ -51,7 +51,6 @@ - diff --git a/booking-mvc/src/main/webapp/WEB-INF/intro.html b/booking-mvc/src/main/webapp/WEB-INF/intro.html new file mode 100644 index 0000000..4212158 --- /dev/null +++ b/booking-mvc/src/main/webapp/WEB-INF/intro.html @@ -0,0 +1,29 @@ +
+

Welcome to Spring Travel

+

+ This sample demonstrates how to use Spring MVC and Spring Web Flow together with JavaServerPages (JSP) and Tiles. +

+
+

+ The key features illustrated in this sample include: +

+
    +
  • A declarative navigation model enabling full browser button support and dynamic navigation rules
  • +
  • A fine-grained state management model, including support for ConversationScope and ViewScope
  • +
  • Modularization of web application functionality by domain use case, illustrating project structure best-practices
  • +
  • Spring Expression Language (SpEL) integration
  • +
  • Spring 3 formatting annotations @DateTimeFormat, @NumberFormat
  • +
  • Spring MVC custom namespace
  • +
  • Spring Security integration
  • +
  • Annotated POJO @Controllers for implementing RESTful user interactions.
  • +
  • Declarative page authoring with JSP, JSTL, and Spring MVC's form tag library
  • +
  • Page layout and composition with Apache Tiles
  • +
  • A JavaScript API for decorating HTML elements with behaviors such as Ajax, validation, and effects.
  • +
  • A grid layout with Blueprint CSS
  • +
  • Exception handling support across all layers of the application
  • +
  • SpringSource Tool Suite integration, with support for graphical flow modeling and visualization
  • +
+

+ Start your Spring Travel experience +

+
diff --git a/booking-mvc/src/main/webapp/WEB-INF/views.xml b/booking-mvc/src/main/webapp/WEB-INF/views.xml index f6c7327..42aca64 100644 --- a/booking-mvc/src/main/webapp/WEB-INF/views.xml +++ b/booking-mvc/src/main/webapp/WEB-INF/views.xml @@ -6,7 +6,7 @@ - + From 4545043fa52d2d94066067eae6a553a86eb602df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Fern=C3=A1ndez?= Date: Fri, 14 Sep 2012 00:15:43 +0200 Subject: [PATCH 07/22] Added thymeleaf versions of "login" and "logoutSuccess" --- .../src/main/webapp/WEB-INF/login.html | 84 +++++++++++++++++++ .../main/webapp/WEB-INF/logoutSuccess.html | 6 ++ booking-mvc/src/main/webapp/WEB-INF/views.xml | 4 +- 3 files changed, 92 insertions(+), 2 deletions(-) create mode 100644 booking-mvc/src/main/webapp/WEB-INF/login.html create mode 100644 booking-mvc/src/main/webapp/WEB-INF/logoutSuccess.html diff --git a/booking-mvc/src/main/webapp/WEB-INF/login.html b/booking-mvc/src/main/webapp/WEB-INF/login.html new file mode 100644 index 0000000..93bfa2a --- /dev/null +++ b/booking-mvc/src/main/webapp/WEB-INF/login.html @@ -0,0 +1,84 @@ + +
+

Valid username/passwords are:

+
    +
  • keith/melbourne
  • +
  • erwin/leuven
  • +
  • jeremy/atlanta
  • +
  • scott/rochester
  • +
+
+ +
+ +
+ Your login attempt was not successful, try again.

+ Reason: Invalid password +
+ +
+ +
+ + Login Information + +

+ +
+ +

+ + + +

+ +
+ +

+ + + +

+ + +

+ + + +

+ + +

+ +
+ +
+ +
diff --git a/booking-mvc/src/main/webapp/WEB-INF/logoutSuccess.html b/booking-mvc/src/main/webapp/WEB-INF/logoutSuccess.html new file mode 100644 index 0000000..85eee8e --- /dev/null +++ b/booking-mvc/src/main/webapp/WEB-INF/logoutSuccess.html @@ -0,0 +1,6 @@ +
+

Logout

+

You have successfully logged out.

+
+

Continue

+
diff --git a/booking-mvc/src/main/webapp/WEB-INF/views.xml b/booking-mvc/src/main/webapp/WEB-INF/views.xml index 42aca64..6aecbaa 100644 --- a/booking-mvc/src/main/webapp/WEB-INF/views.xml +++ b/booking-mvc/src/main/webapp/WEB-INF/views.xml @@ -10,11 +10,11 @@
- + - +
From c7500200b9895e47b9b2ebab311ff2cff79c1a9c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Fern=C3=A1ndez?= Date: Fri, 14 Sep 2012 01:04:24 +0200 Subject: [PATCH 08/22] Created Standard Layout in thymeleaf. --- .../main/webapp/WEB-INF/layouts/standard.html | 69 +++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100644 booking-mvc/src/main/webapp/WEB-INF/layouts/standard.html diff --git a/booking-mvc/src/main/webapp/WEB-INF/layouts/standard.html b/booking-mvc/src/main/webapp/WEB-INF/layouts/standard.html new file mode 100644 index 0000000..c91dc1a --- /dev/null +++ b/booking-mvc/src/main/webapp/WEB-INF/layouts/standard.html @@ -0,0 +1,69 @@ + + + + + + Spring Travel: Spring MVC and Web Flow Reference Application + + + + + + + + + + + + +
+ + +
+ +
+ + \ No newline at end of file From d00d53793eee0c664a101112324d3ff2e244a3b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Fern=C3=A1ndez?= Date: Wed, 19 Dec 2012 03:07:23 +0100 Subject: [PATCH 09/22] Added dependency to thymeleaf-extras-conditionalcomments --- booking-mvc/pom.xml | 7 ++++--- booking-mvc/src/main/resources/log4j.xml | 2 +- .../webapp/WEB-INF/config/webmvc-config.xml | 21 ++++++++++--------- .../src/main/webapp/WEB-INF/intro.html | 6 ++++++ .../main/webapp/WEB-INF/layouts/standard.html | 1 + 5 files changed, 23 insertions(+), 14 deletions(-) diff --git a/booking-mvc/pom.xml b/booking-mvc/pom.xml index 211dcf7..bfdb618 100644 --- a/booking-mvc/pom.xml +++ b/booking-mvc/pom.xml @@ -13,9 +13,10 @@ 3.1.3.RELEASE 2.4.0.BUILD-SNAPSHOT 1.5.10 - 2.0.14-SNAPSHOT - 1.0.0-beta3-SNAPSHOT - 1.0.0-beta2-SNAPSHOT + 2.0.15 + 1.0.0-beta3 + 1.0.0-beta2 + 1.0.0-beta1 2.2.2 diff --git a/booking-mvc/src/main/resources/log4j.xml b/booking-mvc/src/main/resources/log4j.xml index a24fc28..d8ab4b0 100644 --- a/booking-mvc/src/main/resources/log4j.xml +++ b/booking-mvc/src/main/resources/log4j.xml @@ -40,7 +40,7 @@ - + diff --git a/booking-mvc/src/main/webapp/WEB-INF/config/webmvc-config.xml b/booking-mvc/src/main/webapp/WEB-INF/config/webmvc-config.xml index fd03282..ce2e8da 100644 --- a/booking-mvc/src/main/webapp/WEB-INF/config/webmvc-config.xml +++ b/booking-mvc/src/main/webapp/WEB-INF/config/webmvc-config.xml @@ -55,16 +55,17 @@ - - - - - - - - - + + + + + + + + + + diff --git a/booking-mvc/src/main/webapp/WEB-INF/intro.html b/booking-mvc/src/main/webapp/WEB-INF/intro.html index 4212158..66b4cca 100644 --- a/booking-mvc/src/main/webapp/WEB-INF/intro.html +++ b/booking-mvc/src/main/webapp/WEB-INF/intro.html @@ -1,4 +1,10 @@
+ + +

Welcome to Spring Travel

This sample demonstrates how to use Spring MVC and Spring Web Flow together with JavaServerPages (JSP) and Tiles. diff --git a/booking-mvc/src/main/webapp/WEB-INF/layouts/standard.html b/booking-mvc/src/main/webapp/WEB-INF/layouts/standard.html index c91dc1a..3441a74 100644 --- a/booking-mvc/src/main/webapp/WEB-INF/layouts/standard.html +++ b/booking-mvc/src/main/webapp/WEB-INF/layouts/standard.html @@ -8,6 +8,7 @@ From 72402f6f2d2d17066a1d0c8a7c8344dba37dfb7d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Fern=C3=A1ndez?= Date: Wed, 19 Dec 2012 20:55:03 +0100 Subject: [PATCH 10/22] Thymeleaf-ied layout and several JSP pages. --- .../webapp/WEB-INF/config/security-config.xml | 4 +- .../main/webapp/WEB-INF/hotels/search.html | 4 ++ .../webapp/WEB-INF/hotels/searchForm.html | 35 +++++++++++++++ .../src/main/webapp/WEB-INF/hotels/views.xml | 8 ++-- .../src/main/webapp/WEB-INF/intro.html | 6 --- .../main/webapp/WEB-INF/layouts/standard.html | 45 +++++++++---------- .../src/main/webapp/WEB-INF/layouts/views.xml | 2 +- booking-mvc/src/main/webapp/WEB-INF/views.xml | 12 ++--- 8 files changed, 74 insertions(+), 42 deletions(-) create mode 100644 booking-mvc/src/main/webapp/WEB-INF/hotels/search.html create mode 100644 booking-mvc/src/main/webapp/WEB-INF/hotels/searchForm.html diff --git a/booking-mvc/src/main/webapp/WEB-INF/config/security-config.xml b/booking-mvc/src/main/webapp/WEB-INF/config/security-config.xml index cd84b62..12c2945 100644 --- a/booking-mvc/src/main/webapp/WEB-INF/config/security-config.xml +++ b/booking-mvc/src/main/webapp/WEB-INF/config/security-config.xml @@ -7,7 +7,7 @@ http://www.springframework.org/schema/security http://www.springframework.org/schema/security/spring-security-3.1.xsd"> - + @@ -34,4 +34,4 @@ - + \ No newline at end of file diff --git a/booking-mvc/src/main/webapp/WEB-INF/hotels/search.html b/booking-mvc/src/main/webapp/WEB-INF/hotels/search.html new file mode 100644 index 0000000..008e71a --- /dev/null +++ b/booking-mvc/src/main/webapp/WEB-INF/hotels/search.html @@ -0,0 +1,4 @@ + +

+ +
diff --git a/booking-mvc/src/main/webapp/WEB-INF/hotels/searchForm.html b/booking-mvc/src/main/webapp/WEB-INF/hotels/searchForm.html new file mode 100644 index 0000000..5054fea --- /dev/null +++ b/booking-mvc/src/main/webapp/WEB-INF/hotels/searchForm.html @@ -0,0 +1,35 @@ +

Search Hotels

+ +
+ +
    +
  • Input is incorrect
  • +
+ +
+
+ + + +
+
+
+ + +
+
+
+ +
+
+ +
\ No newline at end of file diff --git a/booking-mvc/src/main/webapp/WEB-INF/hotels/views.xml b/booking-mvc/src/main/webapp/WEB-INF/hotels/views.xml index b3317e9..0520de3 100644 --- a/booking-mvc/src/main/webapp/WEB-INF/hotels/views.xml +++ b/booking-mvc/src/main/webapp/WEB-INF/hotels/views.xml @@ -5,16 +5,16 @@ - + - - + + - + diff --git a/booking-mvc/src/main/webapp/WEB-INF/intro.html b/booking-mvc/src/main/webapp/WEB-INF/intro.html index 66b4cca..4212158 100644 --- a/booking-mvc/src/main/webapp/WEB-INF/intro.html +++ b/booking-mvc/src/main/webapp/WEB-INF/intro.html @@ -1,10 +1,4 @@
- - -

Welcome to Spring Travel

This sample demonstrates how to use Spring MVC and Spring Web Flow together with JavaServerPages (JSP) and Tiles. diff --git a/booking-mvc/src/main/webapp/WEB-INF/layouts/standard.html b/booking-mvc/src/main/webapp/WEB-INF/layouts/standard.html index 3441a74..3ba6db6 100644 --- a/booking-mvc/src/main/webapp/WEB-INF/layouts/standard.html +++ b/booking-mvc/src/main/webapp/WEB-INF/layouts/standard.html @@ -1,17 +1,20 @@ - + Spring Travel: Spring MVC and Web Flow Reference Application - - + + - + @@ -22,22 +25,18 @@

diff --git a/booking-mvc/src/main/webapp/WEB-INF/layouts/views.xml b/booking-mvc/src/main/webapp/WEB-INF/layouts/views.xml index a2a5039..c09aca8 100644 --- a/booking-mvc/src/main/webapp/WEB-INF/layouts/views.xml +++ b/booking-mvc/src/main/webapp/WEB-INF/layouts/views.xml @@ -5,6 +5,6 @@ - + diff --git a/booking-mvc/src/main/webapp/WEB-INF/views.xml b/booking-mvc/src/main/webapp/WEB-INF/views.xml index 6aecbaa..827999f 100644 --- a/booking-mvc/src/main/webapp/WEB-INF/views.xml +++ b/booking-mvc/src/main/webapp/WEB-INF/views.xml @@ -5,16 +5,16 @@ - - + + - - + + - - + + From 60581276a7d340c8b57d31809a776a260ae00d8c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Fern=C3=A1ndez?= Date: Mon, 24 Dec 2012 03:08:04 +0100 Subject: [PATCH 11/22] Added bookingsTable.html, reconfigured JSP layout for old pages. --- .../webapp/WEB-INF/hotels/booking/views.xml | 4 +- .../webapp/WEB-INF/hotels/bookingsTable.html | 38 +++++++++++++++++++ .../src/main/webapp/WEB-INF/hotels/views.xml | 4 +- .../src/main/webapp/WEB-INF/layouts/views.xml | 3 +- 4 files changed, 44 insertions(+), 5 deletions(-) create mode 100644 booking-mvc/src/main/webapp/WEB-INF/hotels/bookingsTable.html diff --git a/booking-mvc/src/main/webapp/WEB-INF/hotels/booking/views.xml b/booking-mvc/src/main/webapp/WEB-INF/hotels/booking/views.xml index dd3cb6d..6350717 100644 --- a/booking-mvc/src/main/webapp/WEB-INF/hotels/booking/views.xml +++ b/booking-mvc/src/main/webapp/WEB-INF/hotels/booking/views.xml @@ -5,11 +5,11 @@ - + - + diff --git a/booking-mvc/src/main/webapp/WEB-INF/hotels/bookingsTable.html b/booking-mvc/src/main/webapp/WEB-INF/hotels/bookingsTable.html new file mode 100644 index 0000000..a2e80ca --- /dev/null +++ b/booking-mvc/src/main/webapp/WEB-INF/hotels/bookingsTable.html @@ -0,0 +1,38 @@ +
+ +

Current Hotel Bookings

+ +

+ No bookings found +

+ + + + + + + + + + + + + + + + + + + + + + + + +
NameAddressCity, StateCheck in DateCheck out DateConfirmation NumberAction
The Herb PlazaThyme Square, 13Icetown, North Pole2012-12-212012-12-211 +
+ +
+
+ +
\ No newline at end of file diff --git a/booking-mvc/src/main/webapp/WEB-INF/hotels/views.xml b/booking-mvc/src/main/webapp/WEB-INF/hotels/views.xml index 0520de3..9f8de24 100644 --- a/booking-mvc/src/main/webapp/WEB-INF/hotels/views.xml +++ b/booking-mvc/src/main/webapp/WEB-INF/hotels/views.xml @@ -9,12 +9,12 @@ - +
- + diff --git a/booking-mvc/src/main/webapp/WEB-INF/layouts/views.xml b/booking-mvc/src/main/webapp/WEB-INF/layouts/views.xml index c09aca8..5ebccd9 100644 --- a/booking-mvc/src/main/webapp/WEB-INF/layouts/views.xml +++ b/booking-mvc/src/main/webapp/WEB-INF/layouts/views.xml @@ -6,5 +6,6 @@ - + + From 196ec3ce141a841f9c67c71a5dbc88da4194e8c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Fern=C3=A1ndez?= Date: Wed, 26 Dec 2012 00:14:17 +0100 Subject: [PATCH 12/22] Added list and show pages --- .../src/main/webapp/WEB-INF/hotels/list.html | 70 +++++++++++++++++++ .../src/main/webapp/WEB-INF/hotels/show.html | 19 +++++ 2 files changed, 89 insertions(+) create mode 100644 booking-mvc/src/main/webapp/WEB-INF/hotels/list.html create mode 100644 booking-mvc/src/main/webapp/WEB-INF/hotels/show.html diff --git a/booking-mvc/src/main/webapp/WEB-INF/hotels/list.html b/booking-mvc/src/main/webapp/WEB-INF/hotels/list.html new file mode 100644 index 0000000..9b0bf73 --- /dev/null +++ b/booking-mvc/src/main/webapp/WEB-INF/hotels/list.html @@ -0,0 +1,70 @@ + +

Hotel Results

+

+ Change Search + +

+
+
+ + + + + + + + + + + + + + + + + + + + + + +
NameAddressCity, StateZipAction
The Herb PlazaThyme Square, 13Icetown, North Pole, Earth0WView Hotel
No hotels found
+
+
+
+ Previous Results + +
+
+
+
+ More Results + +
+
+
+
+
+ diff --git a/booking-mvc/src/main/webapp/WEB-INF/hotels/show.html b/booking-mvc/src/main/webapp/WEB-INF/hotels/show.html new file mode 100644 index 0000000..2554d44 --- /dev/null +++ b/booking-mvc/src/main/webapp/WEB-INF/hotels/show.html @@ -0,0 +1,19 @@ +

The Herb Plaza

+
+ Thyme Square, 13 +
+ Icetown, + North Pole, + 0W +
+ Earth +
+
+

+ Nightly Rate: 4,300 +

+ +
+ +
+
From 880586585b4ed1ab439382515aea44b25f656843 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Fern=C3=A1ndez?= Date: Wed, 26 Dec 2012 23:40:27 +0100 Subject: [PATCH 13/22] Converted booking flow to thymeleaf. --- .../hotels/booking/enterBookingDetails.html | 200 ++++++++++++++++++ .../WEB-INF/hotels/booking/messages.html | 6 + .../WEB-INF/hotels/booking/reviewBooking.html | 74 +++++++ .../webapp/WEB-INF/hotels/booking/views.xml | 13 +- .../src/main/webapp/WEB-INF/hotels/views.xml | 8 +- .../src/main/webapp/WEB-INF/layouts/views.xml | 4 +- booking-mvc/src/main/webapp/WEB-INF/views.xml | 6 +- 7 files changed, 297 insertions(+), 14 deletions(-) create mode 100644 booking-mvc/src/main/webapp/WEB-INF/hotels/booking/enterBookingDetails.html create mode 100644 booking-mvc/src/main/webapp/WEB-INF/hotels/booking/messages.html create mode 100644 booking-mvc/src/main/webapp/WEB-INF/hotels/booking/reviewBooking.html diff --git a/booking-mvc/src/main/webapp/WEB-INF/hotels/booking/enterBookingDetails.html b/booking-mvc/src/main/webapp/WEB-INF/hotels/booking/enterBookingDetails.html new file mode 100644 index 0000000..0a1700e --- /dev/null +++ b/booking-mvc/src/main/webapp/WEB-INF/hotels/booking/enterBookingDetails.html @@ -0,0 +1,200 @@ + +
+ +
+ +

The Herb Plaza

+ +
+ Thyme Square, 13 +
+ Icetown, + North Pole, + 0W +
+ Earth +
+ +

+ Nightly rate: 400.00 +

+ +
+ +
+ +
+ +
+ Input is incorrect +
+ +
+ Book Hotel +
+
+ +
+
+

+ + +
+
+
+
+ +
+
+

+ +
+
+
+
+ +
+
+

+ +

+
+
+
+
+ Smoking Preference: +
+
+

+ + +

+ +
+
+
+
+ Amenities: +
+
+

+ +
+ +
+ +

+ +
+
+
+
+ +
+
+

+ +
+
+
+
+ +
+
+

+ +
+
+
+
+ +
+
+

+ + +

+
+
+
+

+ + +

+ +
+
+ +
+ +
+ +
diff --git a/booking-mvc/src/main/webapp/WEB-INF/hotels/booking/messages.html b/booking-mvc/src/main/webapp/WEB-INF/hotels/booking/messages.html new file mode 100644 index 0000000..4fb9fcd --- /dev/null +++ b/booking-mvc/src/main/webapp/WEB-INF/hotels/booking/messages.html @@ -0,0 +1,6 @@ + +
+
    +
  • Input is incorrect
  • +
+
diff --git a/booking-mvc/src/main/webapp/WEB-INF/hotels/booking/reviewBooking.html b/booking-mvc/src/main/webapp/WEB-INF/hotels/booking/reviewBooking.html new file mode 100644 index 0000000..8b0886f --- /dev/null +++ b/booking-mvc/src/main/webapp/WEB-INF/hotels/booking/reviewBooking.html @@ -0,0 +1,74 @@ +
+ +
+ +

The Herb Plaza

+ +
+ Thyme Square, 13 +
+ Icetown, + North Pole, + 0W +
+ Earth +
+ +
+ +
+ +
+ +
+ + Confirm Booking Details + +
+
Check In:
+
+

2012-12-21

+
+
+
+
Checkout:
+
+

2012-12-21

+
+
+
+
Number of Nights:
+
+

0

+
+
+
+
Total Payment:
+
+

400.00

+
+
+
+
Credit Card #:
+
+

1234123412341234

+
+
+
+

+ + + +

+ +
+ +
+ +
+ +
+ +
diff --git a/booking-mvc/src/main/webapp/WEB-INF/hotels/booking/views.xml b/booking-mvc/src/main/webapp/WEB-INF/hotels/booking/views.xml index 6350717..413de56 100644 --- a/booking-mvc/src/main/webapp/WEB-INF/hotels/booking/views.xml +++ b/booking-mvc/src/main/webapp/WEB-INF/hotels/booking/views.xml @@ -5,12 +5,15 @@ - - + + - - - + + + + + + diff --git a/booking-mvc/src/main/webapp/WEB-INF/hotels/views.xml b/booking-mvc/src/main/webapp/WEB-INF/hotels/views.xml index 9f8de24..f8a7bdd 100644 --- a/booking-mvc/src/main/webapp/WEB-INF/hotels/views.xml +++ b/booking-mvc/src/main/webapp/WEB-INF/hotels/views.xml @@ -8,14 +8,14 @@ - - + + - - + +
diff --git a/booking-mvc/src/main/webapp/WEB-INF/layouts/views.xml b/booking-mvc/src/main/webapp/WEB-INF/layouts/views.xml index 5ebccd9..aa4d2da 100644 --- a/booking-mvc/src/main/webapp/WEB-INF/layouts/views.xml +++ b/booking-mvc/src/main/webapp/WEB-INF/layouts/views.xml @@ -5,7 +5,7 @@ - - + + diff --git a/booking-mvc/src/main/webapp/WEB-INF/views.xml b/booking-mvc/src/main/webapp/WEB-INF/views.xml index 827999f..b96d524 100644 --- a/booking-mvc/src/main/webapp/WEB-INF/views.xml +++ b/booking-mvc/src/main/webapp/WEB-INF/views.xml @@ -6,15 +6,15 @@ - + - + - + From 7ff65c47e3edd232a178aefe34215e4c14fc6850 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Fern=C3=A1ndez?= Date: Thu, 27 Dec 2012 02:25:42 +0100 Subject: [PATCH 14/22] Small markup fixes. --- .../hotels/booking/enterBookingDetails.html | 22 +++++++++++++++---- .../WEB-INF/hotels/booking/reviewBooking.html | 2 ++ .../src/main/webapp/WEB-INF/hotels/list.html | 12 ++++++++++ .../main/webapp/WEB-INF/hotels/search.html | 4 ++-- .../webapp/WEB-INF/hotels/searchForm.html | 8 ++++--- .../src/main/webapp/WEB-INF/hotels/show.html | 17 ++++++++------ .../src/main/webapp/WEB-INF/intro.html | 2 +- .../main/webapp/WEB-INF/layouts/standard.html | 5 +++++ 8 files changed, 55 insertions(+), 17 deletions(-) diff --git a/booking-mvc/src/main/webapp/WEB-INF/hotels/booking/enterBookingDetails.html b/booking-mvc/src/main/webapp/WEB-INF/hotels/booking/enterBookingDetails.html index 0a1700e..5ac9f86 100644 --- a/booking-mvc/src/main/webapp/WEB-INF/hotels/booking/enterBookingDetails.html +++ b/booking-mvc/src/main/webapp/WEB-INF/hotels/booking/enterBookingDetails.html @@ -38,10 +38,12 @@

@@ -53,10 +55,12 @@

@@ -84,6 +88,7 @@

@@ -112,6 +118,7 @@

@@ -129,11 +137,13 @@

@@ -144,10 +154,12 @@

@@ -183,12 +195,14 @@

- - + +

diff --git a/booking-mvc/src/main/webapp/WEB-INF/hotels/booking/reviewBooking.html b/booking-mvc/src/main/webapp/WEB-INF/hotels/booking/reviewBooking.html index 8b0886f..b5438da 100644 --- a/booking-mvc/src/main/webapp/WEB-INF/hotels/booking/reviewBooking.html +++ b/booking-mvc/src/main/webapp/WEB-INF/hotels/booking/reviewBooking.html @@ -61,7 +61,9 @@

diff --git a/booking-mvc/src/main/webapp/WEB-INF/hotels/list.html b/booking-mvc/src/main/webapp/WEB-INF/hotels/list.html index 9b0bf73..5df2018 100644 --- a/booking-mvc/src/main/webapp/WEB-INF/hotels/list.html +++ b/booking-mvc/src/main/webapp/WEB-INF/hotels/list.html @@ -1,19 +1,25 @@

Hotel Results

+

Change Search

+
+
+ @@ -37,17 +43,20 @@
+
Previous Results
@@ -56,15 +65,18 @@ More Results
+ diff --git a/booking-mvc/src/main/webapp/WEB-INF/hotels/search.html b/booking-mvc/src/main/webapp/WEB-INF/hotels/search.html index 008e71a..6f74d76 100644 --- a/booking-mvc/src/main/webapp/WEB-INF/hotels/search.html +++ b/booking-mvc/src/main/webapp/WEB-INF/hotels/search.html @@ -1,4 +1,4 @@ -
+
Search form here...
-
+
Bookings table here...
diff --git a/booking-mvc/src/main/webapp/WEB-INF/hotels/searchForm.html b/booking-mvc/src/main/webapp/WEB-INF/hotels/searchForm.html index 5054fea..1d4cfa1 100644 --- a/booking-mvc/src/main/webapp/WEB-INF/hotels/searchForm.html +++ b/booking-mvc/src/main/webapp/WEB-INF/hotels/searchForm.html @@ -11,19 +11,21 @@
diff --git a/booking-mvc/src/main/webapp/WEB-INF/hotels/show.html b/booking-mvc/src/main/webapp/WEB-INF/hotels/show.html index 2554d44..052ae43 100644 --- a/booking-mvc/src/main/webapp/WEB-INF/hotels/show.html +++ b/booking-mvc/src/main/webapp/WEB-INF/hotels/show.html @@ -1,14 +1,17 @@ +

The Herb Plaza

-
- Thyme Square, 13 + +
+ Thyme Square, 13
- Icetown, - North Pole, - 0W + Icetown, + North Pole, + 0W
- Earth + Earth
-
+ +

Nightly Rate: 4,300

diff --git a/booking-mvc/src/main/webapp/WEB-INF/intro.html b/booking-mvc/src/main/webapp/WEB-INF/intro.html index 4212158..5389769 100644 --- a/booking-mvc/src/main/webapp/WEB-INF/intro.html +++ b/booking-mvc/src/main/webapp/WEB-INF/intro.html @@ -3,7 +3,7 @@

This sample demonstrates how to use Spring MVC and Spring Web Flow together with JavaServerPages (JSP) and Tiles.

-
+

The key features illustrated in this sample include:

diff --git a/booking-mvc/src/main/webapp/WEB-INF/layouts/standard.html b/booking-mvc/src/main/webapp/WEB-INF/layouts/standard.html index 3ba6db6..7ea9555 100644 --- a/booking-mvc/src/main/webapp/WEB-INF/layouts/standard.html +++ b/booking-mvc/src/main/webapp/WEB-INF/layouts/standard.html @@ -23,6 +23,7 @@
+ +

@@ -58,12 +60,15 @@ Body here...

+
+ +
\ No newline at end of file From 802a3e919ab710c193557be0ff53be1f82b78413 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Fern=C3=A1ndez?= Date: Sat, 29 Dec 2012 21:40:48 +0100 Subject: [PATCH 15/22] Added static prototyping structures to all templates. --- .../hotels/booking/enterBookingDetails.html | 58 +++++++++++++++++ .../WEB-INF/hotels/booking/messages.html | 59 ++++++++++++++++++ .../WEB-INF/hotels/booking/reviewBooking.html | 59 ++++++++++++++++++ .../webapp/WEB-INF/hotels/booking/views.xml | 7 +-- .../webapp/WEB-INF/hotels/bookingsTable.html | 60 +++++++++++++++++- .../src/main/webapp/WEB-INF/hotels/list.html | 57 +++++++++++++++++ .../main/webapp/WEB-INF/hotels/search.html | 59 ++++++++++++++++++ .../webapp/WEB-INF/hotels/searchForm.html | 62 ++++++++++++++++++- .../src/main/webapp/WEB-INF/hotels/show.html | 59 ++++++++++++++++++ .../src/main/webapp/WEB-INF/hotels/views.xml | 8 +-- .../src/main/webapp/WEB-INF/intro.html | 59 +++++++++++++++++- .../main/webapp/WEB-INF/layouts/standard.html | 43 ++++++++++--- .../src/main/webapp/WEB-INF/login.html | 57 +++++++++++++++++ .../main/webapp/WEB-INF/logoutSuccess.html | 60 +++++++++++++++++- booking-mvc/src/main/webapp/WEB-INF/views.xml | 6 +- 15 files changed, 689 insertions(+), 24 deletions(-) diff --git a/booking-mvc/src/main/webapp/WEB-INF/hotels/booking/enterBookingDetails.html b/booking-mvc/src/main/webapp/WEB-INF/hotels/booking/enterBookingDetails.html index 5ac9f86..46063e1 100644 --- a/booking-mvc/src/main/webapp/WEB-INF/hotels/booking/enterBookingDetails.html +++ b/booking-mvc/src/main/webapp/WEB-INF/hotels/booking/enterBookingDetails.html @@ -1,3 +1,53 @@ + + + + + + + + + + + + Spring Travel: Spring MVC and Web Flow Reference Application + + + + + + + + + + + + + + + + + + + + + + + + + + + +
@@ -212,3 +262,11 @@
+ + + + + + + + diff --git a/booking-mvc/src/main/webapp/WEB-INF/hotels/booking/messages.html b/booking-mvc/src/main/webapp/WEB-INF/hotels/booking/messages.html index 4fb9fcd..7d9638c 100644 --- a/booking-mvc/src/main/webapp/WEB-INF/hotels/booking/messages.html +++ b/booking-mvc/src/main/webapp/WEB-INF/hotels/booking/messages.html @@ -1,6 +1,65 @@ + + + + + + + + + + + + Spring Travel: Spring MVC and Web Flow Reference Application + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
  • Input is incorrect
+ + + + + + + + diff --git a/booking-mvc/src/main/webapp/WEB-INF/hotels/booking/reviewBooking.html b/booking-mvc/src/main/webapp/WEB-INF/hotels/booking/reviewBooking.html index b5438da..5422e01 100644 --- a/booking-mvc/src/main/webapp/WEB-INF/hotels/booking/reviewBooking.html +++ b/booking-mvc/src/main/webapp/WEB-INF/hotels/booking/reviewBooking.html @@ -1,3 +1,54 @@ + + + + + + + + + + + + Spring Travel: Spring MVC and Web Flow Reference Application + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
@@ -74,3 +125,11 @@
+ + + + + + + + diff --git a/booking-mvc/src/main/webapp/WEB-INF/hotels/booking/views.xml b/booking-mvc/src/main/webapp/WEB-INF/hotels/booking/views.xml index 413de56..e683dd6 100644 --- a/booking-mvc/src/main/webapp/WEB-INF/hotels/booking/views.xml +++ b/booking-mvc/src/main/webapp/WEB-INF/hotels/booking/views.xml @@ -6,14 +6,11 @@ - + - + - - - diff --git a/booking-mvc/src/main/webapp/WEB-INF/hotels/bookingsTable.html b/booking-mvc/src/main/webapp/WEB-INF/hotels/bookingsTable.html index a2e80ca..3cddaa3 100644 --- a/booking-mvc/src/main/webapp/WEB-INF/hotels/bookingsTable.html +++ b/booking-mvc/src/main/webapp/WEB-INF/hotels/bookingsTable.html @@ -1,3 +1,53 @@ + + + + + + + + + + + + Spring Travel: Spring MVC and Web Flow Reference Application + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Current Hotel Bookings

@@ -35,4 +85,12 @@ -
\ No newline at end of file + + + + + + + + + diff --git a/booking-mvc/src/main/webapp/WEB-INF/hotels/list.html b/booking-mvc/src/main/webapp/WEB-INF/hotels/list.html index 5df2018..6ec83ca 100644 --- a/booking-mvc/src/main/webapp/WEB-INF/hotels/list.html +++ b/booking-mvc/src/main/webapp/WEB-INF/hotels/list.html @@ -1,3 +1,53 @@ + + + + + + + + + + + + Spring Travel: Spring MVC and Web Flow Reference Application + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Hotel Results

@@ -80,3 +130,10 @@ + + + + + + + diff --git a/booking-mvc/src/main/webapp/WEB-INF/hotels/search.html b/booking-mvc/src/main/webapp/WEB-INF/hotels/search.html index 6f74d76..a8c1692 100644 --- a/booking-mvc/src/main/webapp/WEB-INF/hotels/search.html +++ b/booking-mvc/src/main/webapp/WEB-INF/hotels/search.html @@ -1,4 +1,63 @@ + + + + + + + + + + + + Spring Travel: Spring MVC and Web Flow Reference Application + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Search form here...
Bookings table here...
+ + + + + + + + + diff --git a/booking-mvc/src/main/webapp/WEB-INF/hotels/searchForm.html b/booking-mvc/src/main/webapp/WEB-INF/hotels/searchForm.html index 1d4cfa1..ddfbc68 100644 --- a/booking-mvc/src/main/webapp/WEB-INF/hotels/searchForm.html +++ b/booking-mvc/src/main/webapp/WEB-INF/hotels/searchForm.html @@ -1,6 +1,56 @@ + + + + + + + + + + + + Spring Travel: Spring MVC and Web Flow Reference Application + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Search Hotels

- +
  • Input is incorrect
  • @@ -34,4 +84,12 @@ - \ No newline at end of file + + + + + + + + + diff --git a/booking-mvc/src/main/webapp/WEB-INF/hotels/show.html b/booking-mvc/src/main/webapp/WEB-INF/hotels/show.html index 052ae43..3ed7168 100644 --- a/booking-mvc/src/main/webapp/WEB-INF/hotels/show.html +++ b/booking-mvc/src/main/webapp/WEB-INF/hotels/show.html @@ -1,3 +1,53 @@ + + + + + + + + + + + + Spring Travel: Spring MVC and Web Flow Reference Application + + + + + + + + + + + + + + + + + + + + + + + + + + + +

    The Herb Plaza

    @@ -20,3 +70,12 @@ + + + + + + + + + diff --git a/booking-mvc/src/main/webapp/WEB-INF/hotels/views.xml b/booking-mvc/src/main/webapp/WEB-INF/hotels/views.xml index f8a7bdd..a6a7e9a 100644 --- a/booking-mvc/src/main/webapp/WEB-INF/hotels/views.xml +++ b/booking-mvc/src/main/webapp/WEB-INF/hotels/views.xml @@ -7,15 +7,15 @@ - - - + + + - + diff --git a/booking-mvc/src/main/webapp/WEB-INF/intro.html b/booking-mvc/src/main/webapp/WEB-INF/intro.html index 5389769..a5ea43b 100644 --- a/booking-mvc/src/main/webapp/WEB-INF/intro.html +++ b/booking-mvc/src/main/webapp/WEB-INF/intro.html @@ -1,4 +1,53 @@ -
    + + + + + + + + + + + + Spring Travel: Spring MVC and Web Flow Reference Application + + + + + + + + + + + + + + + + + + + + + + + + + + + +

    Welcome to Spring Travel

    This sample demonstrates how to use Spring MVC and Spring Web Flow together with JavaServerPages (JSP) and Tiles. @@ -27,3 +76,11 @@ Start your Spring Travel experience

    + + + + + + + + diff --git a/booking-mvc/src/main/webapp/WEB-INF/layouts/standard.html b/booking-mvc/src/main/webapp/WEB-INF/layouts/standard.html index 7ea9555..a1e39aa 100644 --- a/booking-mvc/src/main/webapp/WEB-INF/layouts/standard.html +++ b/booking-mvc/src/main/webapp/WEB-INF/layouts/standard.html @@ -6,20 +6,41 @@ lang="en"> + + Spring Travel: Spring MVC and Web Flow Reference Application - Spring Travel: Spring MVC and Web Flow Reference Application - - - + + + + + - + + + + + + + + + +
    @@ -57,7 +78,15 @@

    - Body here... + + + + + + + + BODY PAGE GOES HERE! +
    diff --git a/booking-mvc/src/main/webapp/WEB-INF/login.html b/booking-mvc/src/main/webapp/WEB-INF/login.html index 93bfa2a..700e91a 100644 --- a/booking-mvc/src/main/webapp/WEB-INF/login.html +++ b/booking-mvc/src/main/webapp/WEB-INF/login.html @@ -1,3 +1,52 @@ + + + + + + + + + + + + Spring Travel: Spring MVC and Web Flow Reference Application + + + + + + + + + + + + + + + + + + + + + + + + + + +

    Valid username/passwords are:

    @@ -82,3 +131,11 @@
    + + + + + + + + diff --git a/booking-mvc/src/main/webapp/WEB-INF/logoutSuccess.html b/booking-mvc/src/main/webapp/WEB-INF/logoutSuccess.html index 85eee8e..6cbead6 100644 --- a/booking-mvc/src/main/webapp/WEB-INF/logoutSuccess.html +++ b/booking-mvc/src/main/webapp/WEB-INF/logoutSuccess.html @@ -1,6 +1,64 @@ -
    + + + + + + + + + + + + Spring Travel: Spring MVC and Web Flow Reference Application + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

    Logout

    You have successfully logged out.


    Continue

    + + + + + + + + diff --git a/booking-mvc/src/main/webapp/WEB-INF/views.xml b/booking-mvc/src/main/webapp/WEB-INF/views.xml index b96d524..0fcba6a 100644 --- a/booking-mvc/src/main/webapp/WEB-INF/views.xml +++ b/booking-mvc/src/main/webapp/WEB-INF/views.xml @@ -6,15 +6,15 @@ - + - + - + From f60181ad06c0623ec18b7677f51c5b133d076e44 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Fern=C3=A1ndez?= Date: Sat, 29 Dec 2012 21:45:18 +0100 Subject: [PATCH 16/22] Added static content to search.html --- booking-mvc/src/main/webapp/WEB-INF/hotels/search.html | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/booking-mvc/src/main/webapp/WEB-INF/hotels/search.html b/booking-mvc/src/main/webapp/WEB-INF/hotels/search.html index a8c1692..35f5f0a 100644 --- a/booking-mvc/src/main/webapp/WEB-INF/hotels/search.html +++ b/booking-mvc/src/main/webapp/WEB-INF/hotels/search.html @@ -49,9 +49,14 @@ -
    Search form here...
    +
    + A search form will go here. See it at searchForm.html. +
    -
    Bookings table here...
    +
    + A table with the current hotel bookings will go here. + See it at bookingsTable.html. +
    From 63170166fb0dd7b080f87afe7c44c338da095a9f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Fern=C3=A1ndez?= Date: Sat, 29 Dec 2012 22:10:12 +0100 Subject: [PATCH 17/22] Fixed error reporting format. --- .../webapp/WEB-INF/hotels/booking/enterBookingDetails.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/booking-mvc/src/main/webapp/WEB-INF/hotels/booking/enterBookingDetails.html b/booking-mvc/src/main/webapp/WEB-INF/hotels/booking/enterBookingDetails.html index 46063e1..095392a 100644 --- a/booking-mvc/src/main/webapp/WEB-INF/hotels/booking/enterBookingDetails.html +++ b/booking-mvc/src/main/webapp/WEB-INF/hotels/booking/enterBookingDetails.html @@ -76,7 +76,9 @@
    - Input is incorrect + + Input is incorrect
    +
    From 1bcfa72497da57a3fd35ead3d50a8543a4cbe519 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Fern=C3=A1ndez?= Date: Sat, 29 Dec 2012 22:12:21 +0100 Subject: [PATCH 18/22] Deleted original JSP files. --- .../hotels/booking/enterBookingDetails.jsp | 196 ------------------ .../WEB-INF/hotels/booking/messages.jsp | 5 - .../WEB-INF/hotels/booking/reviewBooking.jsp | 65 ------ .../webapp/WEB-INF/hotels/bookingsTable.jsp | 53 ----- .../src/main/webapp/WEB-INF/hotels/list.jsp | 74 ------- .../main/webapp/WEB-INF/hotels/searchForm.jsp | 36 ---- .../src/main/webapp/WEB-INF/hotels/show.jsp | 22 -- booking-mvc/src/main/webapp/WEB-INF/intro.jsp | 29 --- .../main/webapp/WEB-INF/layouts/standard.jsp | 69 ------ booking-mvc/src/main/webapp/WEB-INF/login.jsp | 66 ------ .../src/main/webapp/WEB-INF/logoutSuccess.jsp | 8 - 11 files changed, 623 deletions(-) delete mode 100644 booking-mvc/src/main/webapp/WEB-INF/hotels/booking/enterBookingDetails.jsp delete mode 100644 booking-mvc/src/main/webapp/WEB-INF/hotels/booking/messages.jsp delete mode 100644 booking-mvc/src/main/webapp/WEB-INF/hotels/booking/reviewBooking.jsp delete mode 100644 booking-mvc/src/main/webapp/WEB-INF/hotels/bookingsTable.jsp delete mode 100644 booking-mvc/src/main/webapp/WEB-INF/hotels/list.jsp delete mode 100644 booking-mvc/src/main/webapp/WEB-INF/hotels/searchForm.jsp delete mode 100644 booking-mvc/src/main/webapp/WEB-INF/hotels/show.jsp delete mode 100755 booking-mvc/src/main/webapp/WEB-INF/intro.jsp delete mode 100644 booking-mvc/src/main/webapp/WEB-INF/layouts/standard.jsp delete mode 100755 booking-mvc/src/main/webapp/WEB-INF/login.jsp delete mode 100755 booking-mvc/src/main/webapp/WEB-INF/logoutSuccess.jsp diff --git a/booking-mvc/src/main/webapp/WEB-INF/hotels/booking/enterBookingDetails.jsp b/booking-mvc/src/main/webapp/WEB-INF/hotels/booking/enterBookingDetails.jsp deleted file mode 100644 index 1f95919..0000000 --- a/booking-mvc/src/main/webapp/WEB-INF/hotels/booking/enterBookingDetails.jsp +++ /dev/null @@ -1,196 +0,0 @@ -<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> -<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %> -<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %> - -
    -
    -

    ${booking.hotel.name}

    - -
    - ${booking.hotel.address} -
    - ${booking.hotel.city}, ${booking.hotel.state}, ${booking.hotel.zip} -
    - ${booking.hotel.country} -
    -

    - Nightly rate: ${status.value} -

    -
    -
    - -
    - - -
    -
    -
    -
    -
    - -
    - Book Hotel -
    -
    - -
    -
    -

    - - -
    -
    -
    -
    - -
    -
    -

    - -
    -
    -
    -
    - -
    -
    -

    - - - - - -

    -
    -
    -
    -
    - Smoking Preference: -
    -
    -

    - - -

    - -
    -
    -
    -
    - Amenities: -
    -
    -

    - -
    - -
    - -

    - -
    -
    -
    -
    - -
    -
    -

    - -
    -
    -
    -
    - -
    -
    -

    - -
    -
    -
    -
    - -
    -
    -

    - - - - - - - - - - - - - - - - - - - - - -

    -
    -
    -
    -

    - - -

    - -
    -
    -
    -
    -
    diff --git a/booking-mvc/src/main/webapp/WEB-INF/hotels/booking/messages.jsp b/booking-mvc/src/main/webapp/WEB-INF/hotels/booking/messages.jsp deleted file mode 100644 index 42054c9..0000000 --- a/booking-mvc/src/main/webapp/WEB-INF/hotels/booking/messages.jsp +++ /dev/null @@ -1,5 +0,0 @@ -<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %> - -
    - -
    \ No newline at end of file diff --git a/booking-mvc/src/main/webapp/WEB-INF/hotels/booking/reviewBooking.jsp b/booking-mvc/src/main/webapp/WEB-INF/hotels/booking/reviewBooking.jsp deleted file mode 100644 index 9efe4fa..0000000 --- a/booking-mvc/src/main/webapp/WEB-INF/hotels/booking/reviewBooking.jsp +++ /dev/null @@ -1,65 +0,0 @@ -<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> -<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %> -<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %> - -
    -
    -

    ${booking.hotel.name}

    - -
    - ${booking.hotel.address} -
    - ${booking.hotel.city}, ${booking.hotel.state}, ${booking.hotel.zip} -
    - ${booking.hotel.country} -
    -
    -
    - -
    - Confirm Booking Details -
    -
    Check In:
    -
    -

    ${status.value}

    -
    -
    -
    -
    Checkout:
    -
    -

    ${status.value}

    -
    -
    -
    -
    Number of Nights:
    -
    -

    ${status.value}

    -
    -
    -
    -
    Total Payment:
    -
    -

    ${status.value}

    -
    -
    -
    -
    Credit Card #:
    -
    -

    ${booking.creditCard}

    -
    -
    -
    -

    - - - -

    - -
    -
    -
    -
    - -
    diff --git a/booking-mvc/src/main/webapp/WEB-INF/hotels/bookingsTable.jsp b/booking-mvc/src/main/webapp/WEB-INF/hotels/bookingsTable.jsp deleted file mode 100644 index 6d66283..0000000 --- a/booking-mvc/src/main/webapp/WEB-INF/hotels/bookingsTable.jsp +++ /dev/null @@ -1,53 +0,0 @@ -<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> -<%@ taglib prefix="security" uri="http://www.springframework.org/security/tags" %> -<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %> -<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %> - -
    - -

    Current Hotel Bookings

    - - - - No bookings found - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    NameAddressCity, StateCheck in DateCheck out DateConfirmation NumberAction
    ${booking.hotel.name}${booking.hotel.address}${booking.hotel.city}, ${booking.hotel.state}${booking.checkinDate}${booking.checkoutDate}${booking.id} - - - - - - -
    -
    -
    - -
    \ No newline at end of file diff --git a/booking-mvc/src/main/webapp/WEB-INF/hotels/list.jsp b/booking-mvc/src/main/webapp/WEB-INF/hotels/list.jsp deleted file mode 100644 index fdd0880..0000000 --- a/booking-mvc/src/main/webapp/WEB-INF/hotels/list.jsp +++ /dev/null @@ -1,74 +0,0 @@ -<%@ taglib prefix="tiles" uri="http://tiles.apache.org/tags-tiles" %> -<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> -<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%> - -

    Hotel Results

    -

    - Change Search - -

    -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    NameAddressCity, StateZipAction
    ${hotel.name}${hotel.address}${hotel.city}, ${hotel.state}, ${hotel.country}${hotel.zip}View Hotel
    No hotels found
    -
    -
    - - Previous Results - - -
    -
    - - More Results - - -
    -
    -
    -
    - diff --git a/booking-mvc/src/main/webapp/WEB-INF/hotels/searchForm.jsp b/booking-mvc/src/main/webapp/WEB-INF/hotels/searchForm.jsp deleted file mode 100644 index 0940b44..0000000 --- a/booking-mvc/src/main/webapp/WEB-INF/hotels/searchForm.jsp +++ /dev/null @@ -1,36 +0,0 @@ -<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %> -<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %> - -

    Search Hotels

    - - - - - - -
    -
    - - - -
    -
    -
    - - - - - - -
    -
    -
    - -
    -
    -
    \ No newline at end of file diff --git a/booking-mvc/src/main/webapp/WEB-INF/hotels/show.jsp b/booking-mvc/src/main/webapp/WEB-INF/hotels/show.jsp deleted file mode 100644 index 82e2e70..0000000 --- a/booking-mvc/src/main/webapp/WEB-INF/hotels/show.jsp +++ /dev/null @@ -1,22 +0,0 @@ -<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> -<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %> -<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %> - -

    ${hotel.name}

    -
    - ${hotel.address} -
    - ${hotel.city}, ${hotel.state}, ${hotel.zip} -
    - ${hotel.country} -
    - -

    - Nightly Rate: - ${status.value} -

    - -
    - -
    - diff --git a/booking-mvc/src/main/webapp/WEB-INF/intro.jsp b/booking-mvc/src/main/webapp/WEB-INF/intro.jsp deleted file mode 100755 index 4525d2f..0000000 --- a/booking-mvc/src/main/webapp/WEB-INF/intro.jsp +++ /dev/null @@ -1,29 +0,0 @@ -
    -

    Welcome to Spring Travel

    -

    - This sample demonstrates how to use Spring MVC and Spring Web Flow together with JavaServerPages (JSP) and Tiles. -

    -
    -

    - The key features illustrated in this sample include: -

    -
      -
    • A declarative navigation model enabling full browser button support and dynamic navigation rules
    • -
    • A fine-grained state management model, including support for ConversationScope and ViewScope
    • -
    • Modularization of web application functionality by domain use case, illustrating project structure best-practices
    • -
    • Spring Expression Language (SpEL) integration
    • -
    • Spring 3 formatting annotations @DateTimeFormat, @NumberFormat
    • -
    • Spring MVC custom namespace
    • -
    • Spring Security integration
    • -
    • Annotated POJO @Controllers for implementing RESTful user interactions.
    • -
    • Declarative page authoring with JSP, JSTL, and Spring MVC's form tag library
    • -
    • Page layout and composition with Apache Tiles
    • -
    • A JavaScript API for decorating HTML elements with behaviors such as Ajax, validation, and effects.
    • -
    • A grid layout with Blueprint CSS
    • -
    • Exception handling support across all layers of the application
    • -
    • SpringSource Tool Suite integration, with support for graphical flow modeling and visualization
    • -
    -

    - Start your Spring Travel experience -

    -
    diff --git a/booking-mvc/src/main/webapp/WEB-INF/layouts/standard.jsp b/booking-mvc/src/main/webapp/WEB-INF/layouts/standard.jsp deleted file mode 100644 index 5e7bfbb..0000000 --- a/booking-mvc/src/main/webapp/WEB-INF/layouts/standard.jsp +++ /dev/null @@ -1,69 +0,0 @@ -<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> -<%@ taglib prefix="tiles" uri="http://tiles.apache.org/tags-tiles" %> -<%@ taglib prefix="security" uri="http://www.springframework.org/security/tags" %> - - - - - Spring Travel: Spring MVC and Web Flow Reference Application - " /> - " type="text/css" media="screen, projection" /> - " type="text/css" media="print" /> - - " type="text/css" media="screen" /> - - - - - -
    - - -
    - -
    - - \ No newline at end of file diff --git a/booking-mvc/src/main/webapp/WEB-INF/login.jsp b/booking-mvc/src/main/webapp/WEB-INF/login.jsp deleted file mode 100755 index 04d9c59..0000000 --- a/booking-mvc/src/main/webapp/WEB-INF/login.jsp +++ /dev/null @@ -1,66 +0,0 @@ -<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> -<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %> - -<%@ page import="org.springframework.security.web.authentication.UsernamePasswordAuthenticationFilter" %> -<%@ page import="org.springframework.security.core.AuthenticationException" %> - -
    -

    Valid username/passwords are:

    -
      -
    • keith/melbourne
    • -
    • erwin/leuven
    • -
    • jeremy/atlanta
    • -
    • scott/rochester
    • -
    -
    - -
    - -
    - Your login attempt was not successful, try again.

    - Reason: <%= ((AuthenticationException) session.getAttribute(UsernamePasswordAuthenticationFilter.SPRING_SECURITY_LAST_EXCEPTION_KEY)).getMessage() %> -
    -
    -
    " method="post"> -
    - Login Information -

    - -
    - value="<%= session.getAttribute(UsernamePasswordAuthenticationFilter.SPRING_SECURITY_LAST_USERNAME_KEY) %>" /> -

    - -

    - -
    - -

    - -

    - - -

    - -

    - - -

    -
    -
    -
    diff --git a/booking-mvc/src/main/webapp/WEB-INF/logoutSuccess.jsp b/booking-mvc/src/main/webapp/WEB-INF/logoutSuccess.jsp deleted file mode 100755 index 8f7418c..0000000 --- a/booking-mvc/src/main/webapp/WEB-INF/logoutSuccess.jsp +++ /dev/null @@ -1,8 +0,0 @@ -<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> - -
    -

    Logout

    -

    You have successfully logged out.

    -
    -

    ">Continue

    -
    From 7aa70a437e5b1be16b87ca61098cc7b6c91f0c71 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Fern=C3=A1ndez?= Date: Sat, 29 Dec 2012 22:15:27 +0100 Subject: [PATCH 19/22] Fixed unix line feeds. --- .../src/main/webapp/WEB-INF/config/data-access-config.xml | 2 +- .../src/main/webapp/WEB-INF/config/webflow-config.xml | 6 +++--- .../src/main/webapp/WEB-INF/config/webmvc-config.xml | 3 +-- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/booking-mvc/src/main/webapp/WEB-INF/config/data-access-config.xml b/booking-mvc/src/main/webapp/WEB-INF/config/data-access-config.xml index c7b9d8b..924ede3 100644 --- a/booking-mvc/src/main/webapp/WEB-INF/config/data-access-config.xml +++ b/booking-mvc/src/main/webapp/WEB-INF/config/data-access-config.xml @@ -2,7 +2,7 @@ diff --git a/booking-mvc/src/main/webapp/WEB-INF/config/webflow-config.xml b/booking-mvc/src/main/webapp/WEB-INF/config/webflow-config.xml index edb4fdb..06cb11a 100644 --- a/booking-mvc/src/main/webapp/WEB-INF/config/webflow-config.xml +++ b/booking-mvc/src/main/webapp/WEB-INF/config/webflow-config.xml @@ -2,9 +2,9 @@ + xsi:schemaLocation=" + http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.1.xsd + http://www.springframework.org/schema/webflow-config http://www.springframework.org/schema/webflow-config/spring-webflow-config-2.3.xsd"> diff --git a/booking-mvc/src/main/webapp/WEB-INF/config/webmvc-config.xml b/booking-mvc/src/main/webapp/WEB-INF/config/webmvc-config.xml index ce2e8da..2bdfa4e 100644 --- a/booking-mvc/src/main/webapp/WEB-INF/config/webmvc-config.xml +++ b/booking-mvc/src/main/webapp/WEB-INF/config/webmvc-config.xml @@ -4,7 +4,7 @@ xmlns:mvc="http://www.springframework.org/schema/mvc" xsi:schemaLocation=" http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc-3.1.xsd - http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-1.0.xsd"> + http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.1.xsd"> @@ -46,7 +46,6 @@ - From ef9d94c2a37a551d2e0b85981c8380d80a1e551f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Fern=C3=A1ndez?= Date: Sun, 30 Dec 2012 00:26:23 +0100 Subject: [PATCH 20/22] Expanded tabs into spaces. --- .../hotels/booking/enterBookingDetails.html | 366 +++++++++--------- .../WEB-INF/hotels/booking/reviewBooking.html | 98 ++--- .../webapp/WEB-INF/hotels/bookingsTable.html | 58 +-- .../src/main/webapp/WEB-INF/hotels/list.html | 126 +++--- .../webapp/WEB-INF/hotels/searchForm.html | 52 +-- .../src/main/webapp/WEB-INF/hotels/show.html | 24 +- .../src/main/webapp/WEB-INF/intro.html | 54 +-- .../main/webapp/WEB-INF/layouts/standard.html | 94 ++--- .../src/main/webapp/WEB-INF/login.html | 120 +++--- .../main/webapp/WEB-INF/logoutSuccess.html | 8 +- 10 files changed, 500 insertions(+), 500 deletions(-) diff --git a/booking-mvc/src/main/webapp/WEB-INF/hotels/booking/enterBookingDetails.html b/booking-mvc/src/main/webapp/WEB-INF/hotels/booking/enterBookingDetails.html index 095392a..50bb3bd 100644 --- a/booking-mvc/src/main/webapp/WEB-INF/hotels/booking/enterBookingDetails.html +++ b/booking-mvc/src/main/webapp/WEB-INF/hotels/booking/enterBookingDetails.html @@ -51,10 +51,10 @@
    -
    +
    -

    The Herb Plaza

    - +

    The Herb Plaza

    +
    Thyme Square, 13
    @@ -65,13 +65,13 @@ Earth
    -

    - Nightly rate: 400.00 -

    +

    + Nightly rate: 400.00 +

    -
    +
    -
    +
    @@ -81,187 +81,187 @@
    -
    - Book Hotel -
    -
    - -
    -
    -

    - - -
    -
    -
    -
    - -
    -
    -

    - -
    -
    -
    -
    - -
    -
    -

    - -

    -
    -
    -
    -
    - Smoking Preference: -
    -
    -

    - +

    + Book Hotel +
    +
    + +
    +
    +

    + + +
    +
    +
    +
    + +
    +
    +

    + +
    +
    +
    +
    + +
    +
    +

    + +

    +
    +
    +
    +
    + Smoking Preference: +
    +
    +

    + -

    - -
    -
    -
    -
    - Amenities: -
    -
    -

    +

    + +
    +
    +
    +
    + Amenities: +
    +
    +

    -
    +
    -
    +
    -

    - -
    -
    -
    -
    - -
    -
    -

    - -
    -
    -
    -
    - -
    -
    +

    + +
    +
    +
    +
    + +
    +
    +

    + +
    +
    +
    +
    + +
    +

    - -
    -
    -
    -
    - -
    -
    -

    - - -

    -
    -
    -
    -

    - - -

    - -
    -
    + +
    +
    +
    +
    + +
    +
    +

    + + +

    +
    +
    +
    +

    + + +

    + +
    +
    - - -
    + + +
    diff --git a/booking-mvc/src/main/webapp/WEB-INF/hotels/booking/reviewBooking.html b/booking-mvc/src/main/webapp/WEB-INF/hotels/booking/reviewBooking.html index 5422e01..a54a00a 100644 --- a/booking-mvc/src/main/webapp/WEB-INF/hotels/booking/reviewBooking.html +++ b/booking-mvc/src/main/webapp/WEB-INF/hotels/booking/reviewBooking.html @@ -51,10 +51,10 @@
    -
    +
    -

    The Herb Plaza

    - +

    The Herb Plaza

    +
    Thyme Square, 13
    @@ -65,64 +65,64 @@ Earth
    -
    +
    -
    +
    -
    + -
    +
    - Confirm Booking Details + Confirm Booking Details -
    -
    Check In:
    -
    -

    2012-12-21

    -
    -
    -
    -
    Checkout:
    -
    +
    +
    Check In:
    +
    +

    2012-12-21

    +
    +
    +
    +
    Checkout:
    +

    2012-12-21

    -
    -
    -
    -
    Number of Nights:
    -
    +
    +
    +
    +
    Number of Nights:
    +

    0

    -
    -
    -
    -
    Total Payment:
    -
    +
    +
    +
    +
    Total Payment:
    +

    400.00

    -
    -
    -
    -
    Credit Card #:
    -
    +
    +
    +
    +
    Credit Card #:
    +

    1234123412341234

    -
    -
    -
    -

    - - - -

    - -
    +
    +
    +
    +

    + + + +

    + +
    -
    +
    -
    + -
    +
    diff --git a/booking-mvc/src/main/webapp/WEB-INF/hotels/bookingsTable.html b/booking-mvc/src/main/webapp/WEB-INF/hotels/bookingsTable.html index 3cddaa3..d6bbc21 100644 --- a/booking-mvc/src/main/webapp/WEB-INF/hotels/bookingsTable.html +++ b/booking-mvc/src/main/webapp/WEB-INF/hotels/bookingsTable.html @@ -50,40 +50,40 @@
    -

    Current Hotel Bookings

    +

    Current Hotel Bookings

    -

    - No bookings found -

    +

    + No bookings found +

    - - - - - - - - - - - - - - - - - - - - - + + +
    NameAddressCity, StateCheck in DateCheck out DateConfirmation NumberAction
    The Herb PlazaThyme Square, 13Icetown, North Pole2012-12-212012-12-211 + + + + + + + + + + + + + + + + + + + + + - - -
    NameAddressCity, StateCheck in DateCheck out DateConfirmation NumberAction
    The Herb PlazaThyme Square, 13Icetown, North Pole2012-12-212012-12-211
    -
    +
    diff --git a/booking-mvc/src/main/webapp/WEB-INF/hotels/list.html b/booking-mvc/src/main/webapp/WEB-INF/hotels/list.html index 6ec83ca..45e8150 100644 --- a/booking-mvc/src/main/webapp/WEB-INF/hotels/list.html +++ b/booking-mvc/src/main/webapp/WEB-INF/hotels/list.html @@ -52,83 +52,83 @@

    Hotel Results

    - Change Search - + Spring.addDecoration(new Spring.AjaxEventDecoration({ + elementId: "changeSearchLink", + event: "onclick", + popup: true, + params: {fragments: "searchForm"} + })); + // ]]> +

    - - - - - - - - - - - - - - - - - - - - - - -
    NameAddressCity, StateZipAction
    The Herb PlazaThyme Square, 13Icetown, North Pole, Earth0WView Hotel
    No hotels found
    + + + + + + + + + + + + + + + + + + + + + + +
    NameAddressCity, StateZipAction
    The Herb PlazaThyme Square, 13Icetown, North Pole, Earth0WView Hotel
    No hotels found
    -
    -
    -
    +
    +
    +
    Previous Results - -
    -
    - +
    +
    + More Results - -
    -
    -
    + +
    +
    +
    -
    + diff --git a/booking-mvc/src/main/webapp/WEB-INF/hotels/searchForm.html b/booking-mvc/src/main/webapp/WEB-INF/hotels/searchForm.html index ddfbc68..f337b8c 100644 --- a/booking-mvc/src/main/webapp/WEB-INF/hotels/searchForm.html +++ b/booking-mvc/src/main/webapp/WEB-INF/hotels/searchForm.html @@ -56,32 +56,32 @@
  • Input is incorrect
-
-
- - - -
-
-
- - -
-
-
- -
+
+
+ + + +
+
+
+ + +
+
+
+ +
diff --git a/booking-mvc/src/main/webapp/WEB-INF/hotels/show.html b/booking-mvc/src/main/webapp/WEB-INF/hotels/show.html index 3ed7168..e4f6489 100644 --- a/booking-mvc/src/main/webapp/WEB-INF/hotels/show.html +++ b/booking-mvc/src/main/webapp/WEB-INF/hotels/show.html @@ -52,23 +52,23 @@

The Herb Plaza

- Thyme Square, 13 -
- Icetown, + Thyme Square, 13 +
+ Icetown, North Pole, 0W -
- Earth +
+ Earth
-

- Nightly Rate: 4,300 -

- -
- -
+

+ Nightly Rate: 4,300 +

+ +
+ +
diff --git a/booking-mvc/src/main/webapp/WEB-INF/intro.html b/booking-mvc/src/main/webapp/WEB-INF/intro.html index a5ea43b..b434438 100644 --- a/booking-mvc/src/main/webapp/WEB-INF/intro.html +++ b/booking-mvc/src/main/webapp/WEB-INF/intro.html @@ -48,33 +48,33 @@
-

Welcome to Spring Travel

-

- This sample demonstrates how to use Spring MVC and Spring Web Flow together with JavaServerPages (JSP) and Tiles. -

-
-

- The key features illustrated in this sample include: -

-
    -
  • A declarative navigation model enabling full browser button support and dynamic navigation rules
  • -
  • A fine-grained state management model, including support for ConversationScope and ViewScope
  • -
  • Modularization of web application functionality by domain use case, illustrating project structure best-practices
  • -
  • Spring Expression Language (SpEL) integration
  • -
  • Spring 3 formatting annotations @DateTimeFormat, @NumberFormat
  • -
  • Spring MVC custom namespace
  • -
  • Spring Security integration
  • -
  • Annotated POJO @Controllers for implementing RESTful user interactions.
  • -
  • Declarative page authoring with JSP, JSTL, and Spring MVC's form tag library
  • -
  • Page layout and composition with Apache Tiles
  • -
  • A JavaScript API for decorating HTML elements with behaviors such as Ajax, validation, and effects.
  • -
  • A grid layout with Blueprint CSS
  • -
  • Exception handling support across all layers of the application
  • -
  • SpringSource Tool Suite integration, with support for graphical flow modeling and visualization
  • -
-

- Start your Spring Travel experience -

+

Welcome to Spring Travel

+

+ This sample demonstrates how to use Spring MVC and Spring Web Flow together with JavaServerPages (JSP) and Tiles. +

+
+

+ The key features illustrated in this sample include: +

+
    +
  • A declarative navigation model enabling full browser button support and dynamic navigation rules
  • +
  • A fine-grained state management model, including support for ConversationScope and ViewScope
  • +
  • Modularization of web application functionality by domain use case, illustrating project structure best-practices
  • +
  • Spring Expression Language (SpEL) integration
  • +
  • Spring 3 formatting annotations @DateTimeFormat, @NumberFormat
  • +
  • Spring MVC custom namespace
  • +
  • Spring Security integration
  • +
  • Annotated POJO @Controllers for implementing RESTful user interactions.
  • +
  • Declarative page authoring with JSP, JSTL, and Spring MVC's form tag library
  • +
  • Page layout and composition with Apache Tiles
  • +
  • A JavaScript API for decorating HTML elements with behaviors such as Ajax, validation, and effects.
  • +
  • A grid layout with Blueprint CSS
  • +
  • Exception handling support across all layers of the application
  • +
  • SpringSource Tool Suite integration, with support for graphical flow modeling and visualization
  • +
+

+ Start your Spring Travel experience +

diff --git a/booking-mvc/src/main/webapp/WEB-INF/layouts/standard.html b/booking-mvc/src/main/webapp/WEB-INF/layouts/standard.html index a1e39aa..fb1c2de 100644 --- a/booking-mvc/src/main/webapp/WEB-INF/layouts/standard.html +++ b/booking-mvc/src/main/webapp/WEB-INF/layouts/standard.html @@ -8,23 +8,23 @@ Spring Travel: Spring MVC and Web Flow Reference Application - + - - - + - @@ -45,39 +45,39 @@
- + -
-
-

- - generic hotel - -

-

- - SpringOne 2GX - -

-
-
+
+
+

+ + generic hotel + +

+

+ + SpringOne 2GX + +

+
+
@@ -87,16 +87,16 @@ BODY PAGE GOES HERE! -
-
+
+
-
+
- +
diff --git a/booking-mvc/src/main/webapp/WEB-INF/login.html b/booking-mvc/src/main/webapp/WEB-INF/login.html index 700e91a..e27a7ad 100644 --- a/booking-mvc/src/main/webapp/WEB-INF/login.html +++ b/booking-mvc/src/main/webapp/WEB-INF/login.html @@ -49,13 +49,13 @@
-

Valid username/passwords are:

-
    -
  • keith/melbourne
  • -
  • erwin/leuven
  • -
  • jeremy/atlanta
  • -
  • scott/rochester
  • -
+

Valid username/passwords are:

+
    +
  • keith/melbourne
  • +
  • erwin/leuven
  • +
  • jeremy/atlanta
  • +
  • scott/rochester
  • +
-
- Your login attempt was not successful, try again.

- Reason: Invalid password -
+
+ Your login attempt was not successful, try again.

+ Reason: Invalid password +
-
+ -
+
- Login Information + Login Information -

- -
- + +
+ -

+

- + -

- -
- -

+

+ +
+ +

- + -

- - -

+

+ + +

- + -

- - -

+

+ + +

-
+
-
+
diff --git a/booking-mvc/src/main/webapp/WEB-INF/logoutSuccess.html b/booking-mvc/src/main/webapp/WEB-INF/logoutSuccess.html index 6cbead6..b8552d5 100644 --- a/booking-mvc/src/main/webapp/WEB-INF/logoutSuccess.html +++ b/booking-mvc/src/main/webapp/WEB-INF/logoutSuccess.html @@ -49,10 +49,10 @@
-

Logout

-

You have successfully logged out.

-
-

Continue

+

Logout

+

You have successfully logged out.

+
+

Continue

From 35fcc082a96eca814f80e7900efcec570083c16c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Fern=C3=A1ndez?= Date: Mon, 31 Dec 2012 02:59:37 +0100 Subject: [PATCH 21/22] Modified thymeleaf-extras-* dependencies to version 2.0.0 --- booking-mvc/pom.xml | 108 ++++++++++++++++++++++++-------------------- 1 file changed, 58 insertions(+), 50 deletions(-) diff --git a/booking-mvc/pom.xml b/booking-mvc/pom.xml index bfdb618..3448b7e 100644 --- a/booking-mvc/pom.xml +++ b/booking-mvc/pom.xml @@ -14,21 +14,22 @@ 2.4.0.BUILD-SNAPSHOT 1.5.10 2.0.15 - 1.0.0-beta3 - 1.0.0-beta2 - 1.0.0-beta1 + 2.0.0 + 2.0.0 + 2.0.0 2.2.2 - - - spring-repository - Spring project snapshots, milestones, and releases - http://repo.springsource.org/snapshot - - + + + spring-repository + Spring project snapshots, milestones, and releases + http://repo.springsource.org/snapshot + + + org.thymeleaf @@ -50,6 +51,7 @@ thymeleaf-extras-springsecurity3 ${thymeleaf-extras-springsecurity3-version} + org.springframework @@ -109,6 +111,7 @@ + org.slf4j @@ -150,6 +153,7 @@ runtime + org.hsqldb @@ -162,6 +166,7 @@ hibernate-entitymanager 3.5.0-Final + javax.servlet @@ -224,6 +229,7 @@ jaxb-api 2.1 + joda-time @@ -236,6 +242,7 @@ 1.0.2 runtime + org.easymock @@ -257,44 +264,45 @@ - - booking-mvc - - - org.apache.maven.plugins - maven-compiler-plugin - 2.3.2 - - 1.6 - 1.6 - - - - org.apache.maven.plugins - maven-surefire-plugin - 2.12 - - junit:junit - - **/*Tests.java - - - - - org.apache.tomcat.maven - tomcat7-maven-plugin - 2.0-SNAPSHOT - - - org.apache.maven.plugins - maven-eclipse-plugin - 2.8 - - true - false - 2.0 - - - - + + booking-mvc + + + org.apache.maven.plugins + maven-compiler-plugin + 2.3.2 + + 1.6 + 1.6 + + + + org.apache.maven.plugins + maven-surefire-plugin + 2.12 + + junit:junit + + **/*Tests.java + + + + + org.apache.tomcat.maven + tomcat7-maven-plugin + 2.0-SNAPSHOT + + + org.apache.maven.plugins + maven-eclipse-plugin + 2.8 + + true + false + 2.0 + + + + + From 2adb680e6aea0b78f8659286c9c931cbc89518e9 Mon Sep 17 00:00:00 2001 From: Rossen Stoyanchev Date: Fri, 1 Feb 2013 16:51:58 -0500 Subject: [PATCH 22/22] Upgrade to SWF 2.4 M1 and fix git rebase issues --- booking-faces/pom.xml | 6 ++--- booking-mvc/pom.xml | 26 +++++++++++++------ .../webapp/WEB-INF/config/webmvc-config.xml | 14 ---------- booking-portlet-faces/pom.xml | 6 ++--- booking-portlet-mvc/pom.xml | 6 ++--- 5 files changed, 27 insertions(+), 31 deletions(-) diff --git a/booking-faces/pom.xml b/booking-faces/pom.xml index 84273a0..ea56105 100644 --- a/booking-faces/pom.xml +++ b/booking-faces/pom.xml @@ -11,7 +11,7 @@ 3.2.1.RELEASE 3.1.3.RELEASE - 2.4.0.BUILD-SNAPSHOT + 2.4.0.M1 1.5.10 2.1.7 3.1.1 @@ -20,8 +20,8 @@ spring-repository - Spring project snapshots, milestones, and releases - http://repo.springsource.org/snapshot + SpringSource Repository + http://repo.springsource.org/milestone primefaces-repository diff --git a/booking-mvc/pom.xml b/booking-mvc/pom.xml index 3448b7e..3c17ea0 100644 --- a/booking-mvc/pom.xml +++ b/booking-mvc/pom.xml @@ -11,8 +11,8 @@ 3.2.1.RELEASE 3.1.3.RELEASE - 2.4.0.BUILD-SNAPSHOT - 1.5.10 + 2.4.0.M1 + 1.6.1 2.0.15 2.0.0 2.0.0 @@ -23,8 +23,8 @@ spring-repository - Spring project snapshots, milestones, and releases - http://repo.springsource.org/snapshot + SpringSource Repository + http://repo.springsource.org/milestone @@ -51,8 +51,18 @@ thymeleaf-extras-springsecurity3 ${thymeleaf-extras-springsecurity3-version} + + org.thymeleaf.extras + thymeleaf-extras-conditionalcomments + ${thymeleaf-extras-conditionalcomments-version} + + + org.springframework + spring-web + ${springframework-version} + org.springframework spring-webmvc @@ -85,7 +95,7 @@ org.springframework - * + spring-aop @@ -96,7 +106,7 @@ org.springframework - * + spring-aop @@ -107,7 +117,7 @@ org.springframework - * + spring-aop @@ -295,7 +305,7 @@ org.apache.maven.plugins maven-eclipse-plugin - 2.8 + 2.9 true false diff --git a/booking-mvc/src/main/webapp/WEB-INF/config/webmvc-config.xml b/booking-mvc/src/main/webapp/WEB-INF/config/webmvc-config.xml index 2bdfa4e..394aece 100644 --- a/booking-mvc/src/main/webapp/WEB-INF/config/webmvc-config.xml +++ b/booking-mvc/src/main/webapp/WEB-INF/config/webmvc-config.xml @@ -23,20 +23,6 @@ - - - - - - - - - - /WEB-INF/**/views.xml - - - - diff --git a/booking-portlet-faces/pom.xml b/booking-portlet-faces/pom.xml index c0e4f4f..99b5b87 100644 --- a/booking-portlet-faces/pom.xml +++ b/booking-portlet-faces/pom.xml @@ -10,7 +10,7 @@ 3.2.1.RELEASE - 2.4.0.BUILD-SNAPSHOT + 2.4.0.M1 1.5.10 2.1.6 @@ -18,8 +18,8 @@ spring-repository - Spring project snapshots, milestones, and releases - http://repo.springsource.org/snapshot + SpringSource Repository + http://repo.springsource.org/milestone diff --git a/booking-portlet-mvc/pom.xml b/booking-portlet-mvc/pom.xml index 310a22c..ba1d1b1 100644 --- a/booking-portlet-mvc/pom.xml +++ b/booking-portlet-mvc/pom.xml @@ -10,15 +10,15 @@ 3.2.1.RELEASE - 2.4.0.BUILD-SNAPSHOT + 2.4.0.M1 1.5.10 spring-repository - Spring project snapshots, milestones, and releases - http://repo.springsource.org/snapshot + SpringSource Repository + http://repo.springsource.org/milestone