From adfe21f66f43f396e2d5a252dc62f89947bfc339 Mon Sep 17 00:00:00 2001 From: Rossen Stoyanchev Date: Thu, 6 May 2010 15:31:07 +0000 Subject: [PATCH] SWF-1219 Add blueprint.css, markup improvements. --- .../webflow/samples/booking/Booking.java | 6 +- .../flows/booking/enterBookingDetails.xhtml | 276 ++++++++--------- .../WEB-INF/flows/booking/reviewBooking.xhtml | 133 +++++---- .../flows/main/enterSearchCriteria.xhtml | 48 ++- .../WEB-INF/flows/main/reviewHotel.xhtml | 61 ++-- .../WEB-INF/flows/main/reviewHotels.xhtml | 10 +- .../src/main/webapp/WEB-INF/intro.xhtml | 10 +- .../webapp/WEB-INF/layouts/standard.xhtml | 70 ++--- .../src/main/webapp/WEB-INF/login.xhtml | 54 ++-- .../main/webapp/WEB-INF/logoutSuccess.xhtml | 9 +- .../src/main/webapp/images/btn.bg.gif | Bin 325 -> 349 bytes .../src/main/webapp/images/header.jpg | Bin 22798 -> 29843 bytes .../src/main/webapp/images/springone2gx.jpeg | Bin 0 -> 1643 bytes .../webapp/styles/blueprint/icons/cross.png | Bin 0 -> 655 bytes .../webapp/styles/blueprint/icons/key.png | Bin 0 -> 455 bytes .../webapp/styles/blueprint/icons/tick.png | Bin 0 -> 537 bytes .../src/main/webapp/styles/blueprint/ie.css | 36 +++ .../blueprint/plugins/buttons/icons/cross.png | Bin 0 -> 655 bytes .../blueprint/plugins/buttons/icons/key.png | Bin 0 -> 455 bytes .../blueprint/plugins/buttons/icons/tick.png | Bin 0 -> 537 bytes .../blueprint/plugins/buttons/readme.txt | 32 ++ .../blueprint/plugins/buttons/screen.css | 97 ++++++ .../blueprint/plugins/fancy-type/readme.txt | 14 + .../blueprint/plugins/fancy-type/screen.css | 71 +++++ .../plugins/link-icons/icons/doc.png | Bin 0 -> 777 bytes .../plugins/link-icons/icons/email.png | Bin 0 -> 641 bytes .../plugins/link-icons/icons/external.png | Bin 0 -> 46848 bytes .../plugins/link-icons/icons/feed.png | Bin 0 -> 691 bytes .../blueprint/plugins/link-icons/icons/im.png | Bin 0 -> 741 bytes .../plugins/link-icons/icons/pdf.png | Bin 0 -> 591 bytes .../plugins/link-icons/icons/visited.png | Bin 0 -> 46990 bytes .../plugins/link-icons/icons/xls.png | Bin 0 -> 663 bytes .../blueprint/plugins/link-icons/readme.txt | 18 ++ .../blueprint/plugins/link-icons/screen.css | 40 +++ .../styles/blueprint/plugins/rtl/readme.txt | 10 + .../styles/blueprint/plugins/rtl/screen.css | 110 +++++++ .../main/webapp/styles/blueprint/print.css | 29 ++ .../main/webapp/styles/blueprint/screen.css | 280 +++++++++++++++++ .../webapp/styles/blueprint/src/forms.css | 65 ++++ .../main/webapp/styles/blueprint/src/grid.css | 281 ++++++++++++++++++ .../main/webapp/styles/blueprint/src/grid.png | Bin 0 -> 161 bytes .../main/webapp/styles/blueprint/src/ie.css | 76 +++++ .../webapp/styles/blueprint/src/print.css | 85 ++++++ .../webapp/styles/blueprint/src/reset.css | 38 +++ .../styles/blueprint/src/typography.css | 106 +++++++ .../src/main/webapp/styles/booking.css | 201 ++++--------- .../webapp/WEB-INF/hotels/bookingsTable.jsp | 2 +- .../src/main/webapp/WEB-INF/intro.jsp | 1 - .../src/main/webapp/WEB-INF/login.jsp | 34 +-- .../src/main/webapp/WEB-INF/logoutSuccess.jsp | 3 +- 50 files changed, 1789 insertions(+), 517 deletions(-) create mode 100644 spring-webflow-samples/booking-faces/src/main/webapp/images/springone2gx.jpeg create mode 100755 spring-webflow-samples/booking-faces/src/main/webapp/styles/blueprint/icons/cross.png create mode 100755 spring-webflow-samples/booking-faces/src/main/webapp/styles/blueprint/icons/key.png create mode 100755 spring-webflow-samples/booking-faces/src/main/webapp/styles/blueprint/icons/tick.png create mode 100755 spring-webflow-samples/booking-faces/src/main/webapp/styles/blueprint/ie.css create mode 100755 spring-webflow-samples/booking-faces/src/main/webapp/styles/blueprint/plugins/buttons/icons/cross.png create mode 100755 spring-webflow-samples/booking-faces/src/main/webapp/styles/blueprint/plugins/buttons/icons/key.png create mode 100755 spring-webflow-samples/booking-faces/src/main/webapp/styles/blueprint/plugins/buttons/icons/tick.png create mode 100755 spring-webflow-samples/booking-faces/src/main/webapp/styles/blueprint/plugins/buttons/readme.txt create mode 100755 spring-webflow-samples/booking-faces/src/main/webapp/styles/blueprint/plugins/buttons/screen.css create mode 100755 spring-webflow-samples/booking-faces/src/main/webapp/styles/blueprint/plugins/fancy-type/readme.txt create mode 100755 spring-webflow-samples/booking-faces/src/main/webapp/styles/blueprint/plugins/fancy-type/screen.css create mode 100755 spring-webflow-samples/booking-faces/src/main/webapp/styles/blueprint/plugins/link-icons/icons/doc.png create mode 100755 spring-webflow-samples/booking-faces/src/main/webapp/styles/blueprint/plugins/link-icons/icons/email.png create mode 100755 spring-webflow-samples/booking-faces/src/main/webapp/styles/blueprint/plugins/link-icons/icons/external.png create mode 100755 spring-webflow-samples/booking-faces/src/main/webapp/styles/blueprint/plugins/link-icons/icons/feed.png create mode 100755 spring-webflow-samples/booking-faces/src/main/webapp/styles/blueprint/plugins/link-icons/icons/im.png create mode 100755 spring-webflow-samples/booking-faces/src/main/webapp/styles/blueprint/plugins/link-icons/icons/pdf.png create mode 100755 spring-webflow-samples/booking-faces/src/main/webapp/styles/blueprint/plugins/link-icons/icons/visited.png create mode 100755 spring-webflow-samples/booking-faces/src/main/webapp/styles/blueprint/plugins/link-icons/icons/xls.png create mode 100755 spring-webflow-samples/booking-faces/src/main/webapp/styles/blueprint/plugins/link-icons/readme.txt create mode 100755 spring-webflow-samples/booking-faces/src/main/webapp/styles/blueprint/plugins/link-icons/screen.css create mode 100755 spring-webflow-samples/booking-faces/src/main/webapp/styles/blueprint/plugins/rtl/readme.txt create mode 100755 spring-webflow-samples/booking-faces/src/main/webapp/styles/blueprint/plugins/rtl/screen.css create mode 100755 spring-webflow-samples/booking-faces/src/main/webapp/styles/blueprint/print.css create mode 100755 spring-webflow-samples/booking-faces/src/main/webapp/styles/blueprint/screen.css create mode 100755 spring-webflow-samples/booking-faces/src/main/webapp/styles/blueprint/src/forms.css create mode 100755 spring-webflow-samples/booking-faces/src/main/webapp/styles/blueprint/src/grid.css create mode 100755 spring-webflow-samples/booking-faces/src/main/webapp/styles/blueprint/src/grid.png create mode 100755 spring-webflow-samples/booking-faces/src/main/webapp/styles/blueprint/src/ie.css create mode 100755 spring-webflow-samples/booking-faces/src/main/webapp/styles/blueprint/src/print.css create mode 100755 spring-webflow-samples/booking-faces/src/main/webapp/styles/blueprint/src/reset.css create mode 100755 spring-webflow-samples/booking-faces/src/main/webapp/styles/blueprint/src/typography.css diff --git a/spring-webflow-samples/booking-faces/src/main/java/org/springframework/webflow/samples/booking/Booking.java b/spring-webflow-samples/booking-faces/src/main/java/org/springframework/webflow/samples/booking/Booking.java index 7536cfb3..8e7875c5 100755 --- a/spring-webflow-samples/booking-faces/src/main/java/org/springframework/webflow/samples/booking/Booking.java +++ b/spring-webflow-samples/booking-faces/src/main/java/org/springframework/webflow/samples/booking/Booking.java @@ -50,7 +50,7 @@ public class Booking implements Serializable { private int beds; - private Amenity amenities; + private Amenity[] amenities; public Booking() { } @@ -182,11 +182,11 @@ public class Booking implements Serializable { } @Transient - public Amenity getAmenities() { + public Amenity[] getAmenities() { return amenities; } - public void setAmenities(Amenity amenities) { + public void setAmenities(Amenity[] amenities) { this.amenities = amenities; } diff --git a/spring-webflow-samples/booking-faces/src/main/webapp/WEB-INF/flows/booking/enterBookingDetails.xhtml b/spring-webflow-samples/booking-faces/src/main/webapp/WEB-INF/flows/booking/enterBookingDetails.xhtml index db11a27d..c557e619 100644 --- a/spring-webflow-samples/booking-faces/src/main/webapp/WEB-INF/flows/booking/enterBookingDetails.xhtml +++ b/spring-webflow-samples/booking-faces/src/main/webapp/WEB-INF/flows/booking/enterBookingDetails.xhtml @@ -8,141 +8,147 @@ -
-

Book Hotel

- -
- -
-
- -
-
-
Name:
-
#{booking.hotel.name}
-
-
-
Address:
-
#{booking.hotel.address}
-
-
-
City, State:
-
#{booking.hotel.city}, #{booking.hotel.state}
-
-
-
Zip:
-
#{booking.hotel.zip}
-
-
-
Country:
-
#{booking.hotel.country}
-
-
-
Nightly rate:
-
- - - -
-
-
-
- Check In Date: +
+

${booking.hotel.name}

+
+ ${booking.hotel.address} +
+ ${booking.hotel.city}, ${booking.hotel.state}, ${booking.hotel.zip} +
+ ${booking.hotel.country} +
+
+
+ +
+
-
- - - - - -
-
-
-
- Check Out Date: -
-
- - - - - -
-
-
-
- Room Preference: -
-
- - - -
-
-
-
- Smoking Preference: -
-
- - - -
-
-
-
- Amenities: -
-
- - - - - -
-
-
-
- Credit Card #: -
-
- - - -
-
-
-
- Credit Card Name: -
-
- - - -
-
-
-
- Expiration Date: -
-
- - - - - - -
-
-
- -   - - -
-
-
-
- + + +
+ Book Hotel +
+
+ Nightly rate: +
+
+

+ + + +

+
+
+
+
+ Check In: +
+
+

+ + + + + +

+
+
+
+
+ Check Out: +
+
+

+ + + + + +

+
+
+
+
+ Room Preference: +
+
+

+ + + +

+
+
+
+
+ Smoking Preference: +
+
+ + + +
+
+
+
+ Amenities: +
+
+ + + + + +
+
+
+
+ Credit Card #: +
+
+

+ + + +

+
+
+
+
+ Credit Card Name: +
+
+

+ + + +

+
+
+
+
+ Expiration Date: +
+
+

+ + + + + + +

+
+
+
+ +   + + +
+
+
+ +
\ No newline at end of file diff --git a/spring-webflow-samples/booking-faces/src/main/webapp/WEB-INF/flows/booking/reviewBooking.xhtml b/spring-webflow-samples/booking-faces/src/main/webapp/WEB-INF/flows/booking/reviewBooking.xhtml index c224fcd6..1e25bbf6 100755 --- a/spring-webflow-samples/booking-faces/src/main/webapp/WEB-INF/flows/booking/reviewBooking.xhtml +++ b/spring-webflow-samples/booking-faces/src/main/webapp/WEB-INF/flows/booking/reviewBooking.xhtml @@ -7,70 +7,73 @@ template="/WEB-INF/layouts/standard.xhtml"> - -
-

Confirm Hotel Booking

-
- -
- -
-
-
Name:
-
#{booking.hotel.name}
-
-
-
Address:
-
#{booking.hotel.address}
-
-
-
City, State:
-
#{booking.hotel.city}, #{booking.hotel.state}
-
-
-
Zip:
-
#{booking.hotel.zip}
-
-
-
Country:
-
#{booking.hotel.country}
-
-
-
Total payment:
-
- - - -
-
-
-
Check In Date:
-
- - - -
-
-
-
Check Out Date:
-
- - - -
-
-
-
Credit Card #:
-
#{booking.creditCard}
-
-
-   -   - -
-
-
-
- +
+

${booking.hotel.name}

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

+ + + +

+
+
+
+
Check Out:
+
+

+ + + +

+
+
+
+
Nights:
+
+

+ +

+
+
+
+
Total payment:
+
+

+ + + +

+
+
+
+
Credit Card:
+
+

+ #{booking.creditCard} +

+
+
+
+   +   + +
+
+
+
\ No newline at end of file diff --git a/spring-webflow-samples/booking-faces/src/main/webapp/WEB-INF/flows/main/enterSearchCriteria.xhtml b/spring-webflow-samples/booking-faces/src/main/webapp/WEB-INF/flows/main/enterSearchCriteria.xhtml index daf31531..49780352 100644 --- a/spring-webflow-samples/booking-faces/src/main/webapp/WEB-INF/flows/main/enterSearchCriteria.xhtml +++ b/spring-webflow-samples/booking-faces/src/main/webapp/WEB-INF/flows/main/enterSearchCriteria.xhtml @@ -9,34 +9,26 @@ -
+
+

Search Hotels

-

Search Hotels

- +
-
-
- Search String: -
-
- - - -
+
+ Search String: + + +
-
-
- Maximum results: -
-
- - - -
+
+ Maximum Results: + + +
-
+
@@ -44,12 +36,12 @@
- -
- -

Current Hotel Bookings

- - + +
+

Current Hotel Bookings

+ + + Name #{booking.hotel.name} diff --git a/spring-webflow-samples/booking-faces/src/main/webapp/WEB-INF/flows/main/reviewHotel.xhtml b/spring-webflow-samples/booking-faces/src/main/webapp/WEB-INF/flows/main/reviewHotel.xhtml index 1511f6c0..018d2ce3 100644 --- a/spring-webflow-samples/booking-faces/src/main/webapp/WEB-INF/flows/main/reviewHotel.xhtml +++ b/spring-webflow-samples/booking-faces/src/main/webapp/WEB-INF/flows/main/reviewHotel.xhtml @@ -8,49 +8,28 @@ -
-

View Hotel

+

${hotel.name}

+
+ ${hotel.address} +
+ ${hotel.city} +
+ ${hotel.state} ${hotel.zip} +
+ ${hotel.country} +
-
-
-
Name:
-
#{hotel.name}
-
-
-
Address:
-
#{hotel.address}
-
-
-
City:
-
#{hotel.city}
-
-
-
State:
-
#{hotel.state}
-
-
-
Zip:
-
#{hotel.zip}
-
-
-
Country:
-
#{hotel.country}
-
-
-
Nightly rate:
-
- - - -
-
-
-   - -
-
+

+ Nightly Rate:  + + + +

+
+    + +
-
\ No newline at end of file diff --git a/spring-webflow-samples/booking-faces/src/main/webapp/WEB-INF/flows/main/reviewHotels.xhtml b/spring-webflow-samples/booking-faces/src/main/webapp/WEB-INF/flows/main/reviewHotels.xhtml index 4561424f..47eb4ee1 100644 --- a/spring-webflow-samples/booking-faces/src/main/webapp/WEB-INF/flows/main/reviewHotels.xhtml +++ b/spring-webflow-samples/booking-faces/src/main/webapp/WEB-INF/flows/main/reviewHotels.xhtml @@ -9,7 +9,7 @@ -
+

Hotel Results

@@ -48,8 +48,12 @@

- - +
+ +
+
+ +
diff --git a/spring-webflow-samples/booking-faces/src/main/webapp/WEB-INF/intro.xhtml b/spring-webflow-samples/booking-faces/src/main/webapp/WEB-INF/intro.xhtml index 0180ed75..f6e3a982 100755 --- a/spring-webflow-samples/booking-faces/src/main/webapp/WEB-INF/intro.xhtml +++ b/spring-webflow-samples/booking-faces/src/main/webapp/WEB-INF/intro.xhtml @@ -8,12 +8,12 @@ -
+

Welcome to Spring Travel

- This reference application illustrates how to use Spring MVC, Spring Web Flow, and Spring Faces - together to power rich web applications based on Spring and JavaServerFaces technology. + This demonstrates how to use Spring MVC and Spring Web Flow with JSF component views.

+

The key features illustrated in this sample include:

@@ -21,15 +21,17 @@
  • 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
  • Managed persistence contexts with the Java Persistence API (JPA)
  • Unified Expression Language (EL) integration
  • Spring Security integration
  • Declarative page authoring with Facelets, including applying reusable page layouts
  • A lightweight component library for Ajax and client-side validation that employs progressive enhancement techniques
  • +
  • A grid layout with Blueprint CSS
  • Exception handling support across all layers of the application
  • Spring IDE tooling integration, with support for graphical flow modeling and visualization
  • -

    +

    Start your Spring Travel experience

    diff --git a/spring-webflow-samples/booking-faces/src/main/webapp/WEB-INF/layouts/standard.xhtml b/spring-webflow-samples/booking-faces/src/main/webapp/WEB-INF/layouts/standard.xhtml index bab3acc7..c5021baa 100644 --- a/spring-webflow-samples/booking-faces/src/main/webapp/WEB-INF/layouts/standard.xhtml +++ b/spring-webflow-samples/booking-faces/src/main/webapp/WEB-INF/layouts/standard.xhtml @@ -9,56 +9,58 @@ Spring Faces: Hotel Booking Sample Application - - - - - - - - - + + + + - -
    -