From 2b8187e1dbae4c996669afa74f615585257d473c Mon Sep 17 00:00:00 2001
From: Rossen Stoyanchev
Date: Thu, 29 May 2014 21:24:00 -0400
Subject: [PATCH] Update booking-portflet-faces sample
---
booking-portlet-faces/pom.xml | 14 +++++++-------
.../webapp/WEB-INF/config/application-config.xml | 6 +++---
.../WEB-INF/config/hotelbooking-portlet-config.xml | 6 +++---
.../src/main/webapp/WEB-INF/faces-config.xml | 12 +++++++-----
.../webapp/WEB-INF/flows/main/reviewHotels.xhtml | 4 ++--
5 files changed, 22 insertions(+), 20 deletions(-)
diff --git a/booking-portlet-faces/pom.xml b/booking-portlet-faces/pom.xml
index 99b0bc0..464186b 100644
--- a/booking-portlet-faces/pom.xml
+++ b/booking-portlet-faces/pom.xml
@@ -12,7 +12,7 @@
2.4.0.RELEASE
4.0.5.RELEASE
1.7.5
- 2.1.6
+ 2.2.6
@@ -88,14 +88,14 @@
- org.apache.myfaces.core
- myfaces-api
- ${myfaces-version}
+ com.sun.faces
+ jsf-api
+ ${mojarra-version}
- org.apache.myfaces.core
- myfaces-impl
- ${myfaces-version}
+ com.sun.faces
+ jsf-impl
+ ${mojarra-version}
diff --git a/booking-portlet-faces/src/main/webapp/WEB-INF/config/application-config.xml b/booking-portlet-faces/src/main/webapp/WEB-INF/config/application-config.xml
index b291c6f..1eef69a 100644
--- a/booking-portlet-faces/src/main/webapp/WEB-INF/config/application-config.xml
+++ b/booking-portlet-faces/src/main/webapp/WEB-INF/config/application-config.xml
@@ -5,11 +5,11 @@
xmlns:tx="http://www.springframework.org/schema/tx"
xsi:schemaLocation="
http://www.springframework.org/schema/beans
- http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
+ http://www.springframework.org/schema/beans/spring-beans-4.0.xsd
http://www.springframework.org/schema/context
- http://www.springframework.org/schema/context/spring-context-2.5.xsd
+ http://www.springframework.org/schema/context/spring-context-4.0.xsd
http://www.springframework.org/schema/tx
- http://www.springframework.org/schema/tx/spring-tx-2.5.xsd">
+ http://www.springframework.org/schema/tx/spring-tx-4.0.xsd">
diff --git a/booking-portlet-faces/src/main/webapp/WEB-INF/config/hotelbooking-portlet-config.xml b/booking-portlet-faces/src/main/webapp/WEB-INF/config/hotelbooking-portlet-config.xml
index 2105fc5..4f99f72 100644
--- a/booking-portlet-faces/src/main/webapp/WEB-INF/config/hotelbooking-portlet-config.xml
+++ b/booking-portlet-faces/src/main/webapp/WEB-INF/config/hotelbooking-portlet-config.xml
@@ -7,9 +7,9 @@
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/webflow-config
- http://www.springframework.org/schema/webflow-config/spring-webflow-config-2.3.xsd
+ http://www.springframework.org/schema/webflow-config/spring-webflow-config-2.4.xsd
http://www.springframework.org/schema/faces
- http://www.springframework.org/schema/faces/spring-faces-2.2.xsd">
+ http://www.springframework.org/schema/faces/spring-faces-2.4.xsd">
@@ -51,7 +51,7 @@
-
+
diff --git a/booking-portlet-faces/src/main/webapp/WEB-INF/faces-config.xml b/booking-portlet-faces/src/main/webapp/WEB-INF/faces-config.xml
index 7799e8a..ecf53ef 100644
--- a/booking-portlet-faces/src/main/webapp/WEB-INF/faces-config.xml
+++ b/booking-portlet-faces/src/main/webapp/WEB-INF/faces-config.xml
@@ -1,10 +1,12 @@
-
-
+
+
+
-
org.springframework.faces.webflow.context.portlet.PortletViewHandler
+
diff --git a/booking-portlet-faces/src/main/webapp/WEB-INF/flows/main/reviewHotels.xhtml b/booking-portlet-faces/src/main/webapp/WEB-INF/flows/main/reviewHotels.xhtml
index ad9d944..95cc409 100644
--- a/booking-portlet-faces/src/main/webapp/WEB-INF/flows/main/reviewHotels.xhtml
+++ b/booking-portlet-faces/src/main/webapp/WEB-INF/flows/main/reviewHotels.xhtml
@@ -13,7 +13,7 @@
-
+
Name
#{hotel.name}
@@ -32,7 +32,7 @@
Action
-
+