diff --git a/spring-webflow-samples/booking-jsf/src/main/webapp/WEB-INF/web.xml b/spring-webflow-samples/booking-jsf/src/main/webapp/WEB-INF/web.xml index 8018953a..6527dbb1 100755 --- a/spring-webflow-samples/booking-jsf/src/main/webapp/WEB-INF/web.xml +++ b/spring-webflow-samples/booking-jsf/src/main/webapp/WEB-INF/web.xml @@ -10,6 +10,25 @@ .xhtml + + + facelets.DEVELOPMENT + true + + + + + facelets.REFRESH_PERIOD + 1 + + + + + facelets.BUILD_BEFORE_RESTORE + false + + javax.faces.STATE_SAVING_METHOD diff --git a/spring-webflow-samples/booking-jsf/src/main/webapp/css/booking.css b/spring-webflow-samples/booking-jsf/src/main/webapp/css/booking.css new file mode 100644 index 00000000..fc2c4eb2 --- /dev/null +++ b/spring-webflow-samples/booking-jsf/src/main/webapp/css/booking.css @@ -0,0 +1,169 @@ + a, a:link a:active { + color: black; + background-color: white; + text-decoration: underline; + } + + a:visited { + color: black; + background-color: transparent; + } + + a:hover { + color: white; + background-color: #65a242; + text-decoration: none; + } + + body.spring { + background-color: #9cac7c; + } + + #header.spring { + margin: 0 0 1em 0; + padding: 0px 0px; + background-color : #414f23; + } + + #branding.spring { + float: none; + width: 100%; + + margin: 10px 0 0 0; + padding: 0 0 0 0; + + text-align: none; + } + + #welcome { + padding: 10px 10px; + } + + #welcome div.left { + float: left; + } + + #welcome div.right { + float: right; + } + + #content.spring { + width: 740px; + background: #fff url(../images/bg.gif) 0 0 repeat; + margin-bottom: 0px; + } + + #content .section { + width: 505px; + float: left; + } + + #content.spring input[type="submit"], input[type="button"] { + margin-right: 5px; + font-weight: bold; + color: #fff; + height: 20px; + background: #fff url(../images/btn.bg.gif) 0 0 repeat-x; + border-style: none; + vertical-align: middle; + } + + .errors { + font-weight: bold; + text-align: center; + color: #600; + } + + .errors ul { + list-style: none; + } + + #content .field { + float:left; + } + + #content .field .label { + float: left; + padding-top: 5px; + padding-right: 5px; + font-weight: bold; + width: 150px; + text-align: right; + } + + #content .field .output { + float: left; + width: 250px; + padding-top: 5px; + text-align: left; + } + + #content .field .input { + float: left; + width: 250px; + text-align: left; + } + + #content .searchGroup { + width: 35%; + text-align: right; + } + + #content .searchGroup .searchButton { + text-align: right; + } + + #content .buttonGroup { + width: 90%; + float: left; + text-align: center; + } + + #content .prev { + float: left; + } + + #content .prev a { + margin-right: 20px; + } + + #content .next { + float: left; + } + + #content .summary { + width: 100%; + border: 1px solid #414f23; + border-collapse: collapse; + } + + #content .summary thead th { + border-left: 1px solid #414f23; + background: #fff url(../images/th.bg.gif) 0 100% repeat-x; + border-bottom: 1px solid #414f23; + padding: 6px; + text-align: left; + font-size: small; + } + + #content .summary tbody td { + border-left: 1px solid #9cac7c; + padding: 4px; + border-bottom: 1px solid #9cac7c; + font-size: 8pt; + } + + #local.spring{ + width: 215px; + } + + #footer.spring { + padding: 25px 0; + background-color : white; + border-top: 1px solid #C3BBB6; + } + + #footer.spring img { + float: right; + padding-right: 20px; + } \ No newline at end of file diff --git a/spring-webflow-samples/booking-jsf/src/main/webapp/css/screen.css b/spring-webflow-samples/booking-jsf/src/main/webapp/css/screen.css deleted file mode 100755 index c09ea787..00000000 --- a/spring-webflow-samples/booking-jsf/src/main/webapp/css/screen.css +++ /dev/null @@ -1,265 +0,0 @@ -/* Setup defaults since variable in browsers ------------------------------------------------ */ -body, div, dd, dt, dl, img, ul, ol, li, p, h1, h2, h3, h4, h5, form, hr, fieldset { - margin: 0; - padding: 0; -} -/* Element Defaults ------------------------------------------------ */ -html { - height: 100%; - background-color: #9cac7c; -} -img { - border: 0; -} -body { - font-family: Verdana, Arial, Helvetica, sans-serif; - font-size: small; - line-height: 1.25em; - color: #362F2D; - position: relative; - width: 760px; - height: 100%; - margin-left: auto; - margin-right: auto; -} -label { - font-weight: bold; - color: #5E5147; -} -input { - border: 1px solid #C3BBB6; - padding: 4px; - margin: 5px 0; - background: #fff url(../images/input.bg.gif) 0 0 repeat-x; -} -select { - border: 1px solid #C3BBB6; - padding: 4px; - margin: 5px 0; - background: #fff url(../images/input.bg.gif) 0 0 repeat-x; -}ol, ul { - margin: 10px 0px 10px 6px; -} -li { - margin: 10px 12px; -} -fieldset { - border: 0; -} -/* Layout ------------------------------------------------ */ -#document { - padding: 0 1px; - background: #fff url(../images/bg.gif) 0 0 repeat-y; - float: left; - border-bottom: 1px solid #C3BBB6; -} -#header { - float: left; - width: 758px; - height:36px; - background-color: #414f23; -} -#container { - float: left; - width: 758px; - background: url(../images/header.jpg) 0 0 repeat-x; -} -#sidebar { - float: left; - width: 205px; - margin-left: 5px; - margin-top: 185px; - padding-top: 5px; -} -#content { - float: left; - width: 448px; - margin-top: 195px; - padding-top: 5px; - background: #fff url(../images/cnt.bg.gif) 0 0 repeat-x; -} -#footer { - clear: both; - margin-top: 40px; - float: left; - padding: 20px; - border-top: 1px solid #C3BBB6; - background-color: #fff; - width: 718px; - text-align: right; -} -/* General ------------------------------------------------ */ -input[type="submit"], input[type="button"] { - font-weight: bold; - color: #fff; - border: 1px solid #5D1414; - height: 26px; - background: #fff url(../images/btn.bg.gif) 0 0 repeat-x; - border-style: none; -} -.center { - text-align: center; -} -.entry { - clear: both; - padding-top: 10px; -} -.entry .label { - float: left; - padding-top: 10px; - padding-right: 5px; - font-weight: bold; - width: 150px; - text-align: right; -} -.entry .output { - float: left; - width: 250px; - padding-top: 10px; - text-align: left; -} -.entry .input { - float: left; - width: 250px; - text-align: left; -} -/* Sidebar ------------------------------------------------ */ -.notes { - text-align: center; - font-size: small; -} -.errors { - font-size: small; - font-weight: bold; - text-align: center; - color: #600; -} -.errors div { - text-align: left; -} -.errors input { - border: 1px solid #600; -} -.errors ul { - list-style: none; -} -.buttonBox { - text-align: center; - padding: 5px 0; -} -#sidebar p { - font-size: small; - color: #8B7869; - line-height: 150%; - padding-top: 10px; - padding-bottom: 10px; - padding-left: 5px; - padding-right: 5px; -} -#sidebar li { - font-size: small; - color: #8B7869; -} -#sidebar h1 { - line-height: normal; - font-weight: bold; - font-size: small; -} -/* -#sidebar p:hover { - color: #362F2D; -} -*/ -/* Content ------------------------------------------------ */ -#content .section { - float: left; - width: 518px; - padding: 15px 15px 0 10px; -} -#content .section h1 { - font-family: "Trebuchet MS", Arial, sans-serif; - line-height: normal; - font-weight: normal; - font-size: large; -} -#content .section p { - line-height: 150%; - padding: 10px 0; - font-size: small; -} -#content table { - width: 100%; - border: 1px solid #D2C9C4; - border-collapse: collapse; -} -#content table caption { - padding-bottom: 6px; - text-align: left; - font-weight: bold; -} -#content table thead th { - border-left: 1px solid #D2C9C4; - background: #fff url(../images/th.bg.gif) 0 100% repeat-x; - border-bottom: 1px solid #D2C9C4; - padding: 6px; - text-align: left; - font-size: small; -} -#content table tbody td { - border-left: 1px solid #E4DBD5; - padding: 4px; - border-bottom: 1px solid #D2C9C4; - font-size: 8pt; -} -#content dt { - font-weight: bold; - float: left; - width: 33%; -} -#content dd { - padding-left: 10px; - float: left; - width: 66%; -} -#radio table { - border: 0px; -} -#radio table tr td { - border: 0px; - border-left: 0px; - border-bottom: 0px; -} -#content .section .prev { - float: left; - width: 120px; -} -#content .section .next { - float: left; -} -/* Header ------------------------------------------------ */ -#title { - float: left; - padding: 10px 0 6px 15px; - color: #e9efdb; -} -#status { - color: #e9efdb; - float: right; - font-family: Verdana, Arial, Helvetica, sans-serif; - font-weight: bold; - font-size: x-small; - text-align: right; - padding-top: 14px; - padding-right: 15px; -} -#status a { - color: #e9efdb; - text-decoration: none; -} diff --git a/spring-webflow-samples/booking-jsf/src/main/webapp/flow/booking/bookingForm.xhtml b/spring-webflow-samples/booking-jsf/src/main/webapp/flow/booking/bookingForm.xhtml index 63c7373f..8d5c96f5 100755 --- a/spring-webflow-samples/booking-jsf/src/main/webapp/flow/booking/bookingForm.xhtml +++ b/spring-webflow-samples/booking-jsf/src/main/webapp/flow/booking/bookingForm.xhtml @@ -4,39 +4,37 @@ xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core" xmlns:sf="http://www.springframework.org/tags/faces" + xmlns:sfe="http://www.springframework.org/tags/faces-ext" template="/template.xhtml">
-

Book Hotel

-
- -
+

Book Hotel

-
+
Name:
#{hotel.name}
-
+
Address:
#{hotel.address}
-
+
City, State:
#{hotel.city}, #{hotel.state}
-
+
Zip:
#{hotel.zip}
-
+
Country:
#{hotel.country}
-
+
Nightly rate:
@@ -44,31 +42,31 @@
-
+
Check In Date:
- + - +
-
+
Check Out Date:
- + - +
-
+
Room Preference:
@@ -80,7 +78,7 @@
-
+
Smoking Preference:
@@ -91,27 +89,27 @@
-
+
Credit Card #:
- + - +
-
+
Credit Card Name:
- +
-
+
Credit Card Expiry:
@@ -139,18 +137,13 @@
-
- -
-
-
 
-
+ +
-   +
-
diff --git a/spring-webflow-samples/booking-jsf/src/main/webapp/flow/booking/confirmBooking.xhtml b/spring-webflow-samples/booking-jsf/src/main/webapp/flow/booking/confirmBooking.xhtml index b38b971c..a6d8b04c 100755 --- a/spring-webflow-samples/booking-jsf/src/main/webapp/flow/booking/confirmBooking.xhtml +++ b/spring-webflow-samples/booking-jsf/src/main/webapp/flow/booking/confirmBooking.xhtml @@ -8,33 +8,33 @@
-

Confirm Hotel Booking

+

Confirm Hotel Booking

-
+
Name:
#{hotel.name}
-
+
Address:
#{hotel.address}
-
+
City, State:
#{hotel.city}, #{hotel.state}
-
+
Zip:
#{hotel.zip}
-
+
Country:
#{hotel.country}
-
+
Total payment:
@@ -43,26 +43,24 @@
-
+
Check In Date:
-
+
Check Out Date:
-
+
Credit Card #:
#{booking.creditCard}
-
-
 
-
-   -   - -
+
+   +   +
+
diff --git a/spring-webflow-samples/booking-jsf/src/main/webapp/flow/booking/hotelDetails.xhtml b/spring-webflow-samples/booking-jsf/src/main/webapp/flow/booking/hotelDetails.xhtml index f3bbe026..1f5228e2 100755 --- a/spring-webflow-samples/booking-jsf/src/main/webapp/flow/booking/hotelDetails.xhtml +++ b/spring-webflow-samples/booking-jsf/src/main/webapp/flow/booking/hotelDetails.xhtml @@ -8,35 +8,32 @@
-

View Hotel

-
- -
-
+

View Hotel

+
Name:
#{hotel.name}
-
+
Address:
#{hotel.address}
-
+
City:
#{hotel.city}
-
+
State:
#{hotel.state}
-
+
Zip:
#{hotel.zip}
-
+
Country:
#{hotel.country}
-
+
Nightly rate:
@@ -48,8 +45,8 @@
-
-   +
+
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 46ca70b2..871c1596 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 @@ -2,7 +2,8 @@ @@ -12,23 +13,32 @@ -

Search Hotels

-
-   - -
- Maximum results:  - - - - - +

Search Hotels

+
+
+
+
+ + + +
+
+ Maximum results: + + + + + +
+
+ +
+
-
+
-
- + Name #{hotel.name} @@ -61,12 +71,10 @@
-

Current Hotel Bookings

-
- -
+

Current Hotel Bookings

+ - + Name #{booking.hotel.name} diff --git a/spring-webflow-samples/booking-jsf/src/main/webapp/images/bg.gif b/spring-webflow-samples/booking-jsf/src/main/webapp/images/bg.gif index ea9200df..013cfa6f 100755 Binary files a/spring-webflow-samples/booking-jsf/src/main/webapp/images/bg.gif and b/spring-webflow-samples/booking-jsf/src/main/webapp/images/bg.gif differ diff --git a/spring-webflow-samples/booking-jsf/src/main/webapp/images/btn.bg.gif b/spring-webflow-samples/booking-jsf/src/main/webapp/images/btn.bg.gif index b77cc954..87256cf4 100755 Binary files a/spring-webflow-samples/booking-jsf/src/main/webapp/images/btn.bg.gif and b/spring-webflow-samples/booking-jsf/src/main/webapp/images/btn.bg.gif differ diff --git a/spring-webflow-samples/booking-jsf/src/main/webapp/images/header.jpg b/spring-webflow-samples/booking-jsf/src/main/webapp/images/header.jpg index ce170222..0be0d4d7 100644 Binary files a/spring-webflow-samples/booking-jsf/src/main/webapp/images/header.jpg and b/spring-webflow-samples/booking-jsf/src/main/webapp/images/header.jpg differ diff --git a/spring-webflow-samples/booking-jsf/src/main/webapp/images/spring-logo.jpg b/spring-webflow-samples/booking-jsf/src/main/webapp/images/spring-logo.jpg deleted file mode 100755 index 62be3983..00000000 Binary files a/spring-webflow-samples/booking-jsf/src/main/webapp/images/spring-logo.jpg and /dev/null differ diff --git a/spring-webflow-samples/booking-jsf/src/main/webapp/images/th.bg.gif b/spring-webflow-samples/booking-jsf/src/main/webapp/images/th.bg.gif index 7ab7c249..4663cf51 100755 Binary files a/spring-webflow-samples/booking-jsf/src/main/webapp/images/th.bg.gif and b/spring-webflow-samples/booking-jsf/src/main/webapp/images/th.bg.gif differ diff --git a/spring-webflow-samples/booking-jsf/src/main/webapp/images/webflow-logo.jpg b/spring-webflow-samples/booking-jsf/src/main/webapp/images/webflow-logo.jpg deleted file mode 100755 index ed76bae0..00000000 Binary files a/spring-webflow-samples/booking-jsf/src/main/webapp/images/webflow-logo.jpg and /dev/null differ 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 ea9c5045..dca90d88 100644 --- a/spring-webflow-samples/booking-jsf/src/main/webapp/template.xhtml +++ b/spring-webflow-samples/booking-jsf/src/main/webapp/template.xhtml @@ -5,20 +5,32 @@ Spring Faces: Hotel Booking Sample Application - + - + -
-