diff --git a/spring-webflow-samples/booking-jsf/.classpath b/spring-webflow-samples/booking-jsf/.classpath index 91938774..372dcaf4 100755 --- a/spring-webflow-samples/booking-jsf/.classpath +++ b/spring-webflow-samples/booking-jsf/.classpath @@ -6,8 +6,5 @@ - - - diff --git a/spring-webflow-samples/booking-jsf/.settings/org.eclipse.jdt.core.prefs b/spring-webflow-samples/booking-jsf/.settings/org.eclipse.jdt.core.prefs index 63c85b13..dc8ffbcd 100755 --- a/spring-webflow-samples/booking-jsf/.settings/org.eclipse.jdt.core.prefs +++ b/spring-webflow-samples/booking-jsf/.settings/org.eclipse.jdt.core.prefs @@ -1,5 +1,6 @@ -#Tue Jul 31 15:11:23 EDT 2007 +#Thu Aug 09 13:12:30 EDT 2007 eclipse.preferences.version=1 +instance/org.eclipse.core.net/org.eclipse.core.net.hasMigrated=true org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5 org.eclipse.jdt.core.compiler.compliance=1.5 diff --git a/spring-webflow-samples/booking-jsf/.settings/org.eclipse.jdt.ui.prefs b/spring-webflow-samples/booking-jsf/.settings/org.eclipse.jdt.ui.prefs index 64363ef0..e0d5724c 100755 --- a/spring-webflow-samples/booking-jsf/.settings/org.eclipse.jdt.ui.prefs +++ b/spring-webflow-samples/booking-jsf/.settings/org.eclipse.jdt.ui.prefs @@ -1,8 +1,9 @@ -#Tue Jul 31 15:09:12 EDT 2007 +#Thu Aug 09 13:12:30 EDT 2007 eclipse.preferences.version=1 editor_save_participant_org.eclipse.jdt.ui.postsavelistener.cleanup=true formatter_profile=_Spring Java Conventions formatter_settings_version=11 +instance/org.eclipse.core.net/org.eclipse.core.net.hasMigrated=true sp_cleanup.add_default_serial_version_id=true sp_cleanup.add_generated_serial_version_id=false sp_cleanup.add_missing_annotations=true diff --git a/spring-webflow-samples/booking-jsf/.settings/org.eclipse.jpt.core.prefs b/spring-webflow-samples/booking-jsf/.settings/org.eclipse.jpt.core.prefs index 95837dae..102d5856 100755 --- a/spring-webflow-samples/booking-jsf/.settings/org.eclipse.jpt.core.prefs +++ b/spring-webflow-samples/booking-jsf/.settings/org.eclipse.jpt.core.prefs @@ -1,4 +1,5 @@ -#Fri Aug 03 12:43:55 EDT 2007 +#Thu Aug 09 13:12:30 EDT 2007 eclipse.preferences.version=1 +instance/org.eclipse.core.net/org.eclipse.core.net.hasMigrated=true org.eclipse.jpt.core.discoverAnnotatedClasses=true org.eclipse.jpt.core.platform=generic diff --git a/spring-webflow-samples/booking-jsf/.settings/org.eclipse.jst.common.project.facet.core.prefs b/spring-webflow-samples/booking-jsf/.settings/org.eclipse.jst.common.project.facet.core.prefs index 1973f017..7a3d18a6 100755 --- a/spring-webflow-samples/booking-jsf/.settings/org.eclipse.jst.common.project.facet.core.prefs +++ b/spring-webflow-samples/booking-jsf/.settings/org.eclipse.jst.common.project.facet.core.prefs @@ -1,4 +1,5 @@ -#Mon Nov 13 17:23:47 PST 2006 +#Thu Aug 09 13:12:30 EDT 2007 classpath.helper/org.eclipse.jdt.launching.JRE_CONTAINER/owners=jst.java\:5.0 classpath.helper/org.eclipse.jst.server.core.container\:\:org.eclipse.jst.server.tomcat.runtimeTarget\:\:Apache\ Tomcat\ v5.5/owners=jst.web\:2.4 eclipse.preferences.version=1 +instance/org.eclipse.core.net/org.eclipse.core.net.hasMigrated=true diff --git a/spring-webflow-samples/booking-jsf/.settings/org.eclipse.wst.validation.prefs b/spring-webflow-samples/booking-jsf/.settings/org.eclipse.wst.validation.prefs index 1c7d6317..f5f51015 100755 --- a/spring-webflow-samples/booking-jsf/.settings/org.eclipse.wst.validation.prefs +++ b/spring-webflow-samples/booking-jsf/.settings/org.eclipse.wst.validation.prefs @@ -1,6 +1,7 @@ -#Mon Nov 13 17:29:33 PST 2006 +#Thu Aug 09 13:12:30 EDT 2007 DELEGATES_PREFERENCE=delegateValidatorListorg.eclipse.wst.wsdl.validation.internal.eclipse.WSDLDelegatingValidator\=org.eclipse.wst.wsdl.validation.internal.eclipse.Validator;org.eclipse.wst.xsd.core.internal.validation.eclipse.XSDDelegatingValidator\=org.eclipse.wst.xsd.core.internal.validation.eclipse.Validator; USER_BUILD_PREFERENCE=enabledBuildValidatorListorg.eclipse.wst.html.internal.validation.HTMLValidator;org.eclipse.wst.xml.core.internal.validation.eclipse.Validator;org.eclipse.wst.dtd.core.internal.validation.eclipse.Validator;org.eclipse.wst.wsdl.validation.internal.eclipse.WSDLDelegatingValidator;org.eclipse.jst.j2ee.internal.web.validation.UIWarValidator;org.eclipse.jst.jsp.core.internal.validation.JSPELValidator;org.eclipse.jst.jsp.core.internal.validation.JSPJavaValidator;org.eclipse.jst.jsp.core.internal.validation.JSPDirectiveValidator;org.eclipse.wst.common.componentcore.internal.ModuleCoreValidator;org.eclipse.wst.wsi.ui.internal.WSIMessageValidator;org.eclipse.wst.xsd.core.internal.validation.eclipse.XSDDelegatingValidator; USER_MANUAL_PREFERENCE=enabledManualValidatorListorg.eclipse.wst.html.internal.validation.HTMLValidator;org.eclipse.wst.xml.core.internal.validation.eclipse.Validator;org.eclipse.wst.dtd.core.internal.validation.eclipse.Validator;org.eclipse.wst.wsdl.validation.internal.eclipse.WSDLDelegatingValidator;org.eclipse.jst.j2ee.internal.web.validation.UIWarValidator;org.eclipse.jst.jsp.core.internal.validation.JSPELValidator;org.eclipse.jst.jsp.core.internal.validation.JSPJavaValidator;org.eclipse.jst.jsp.core.internal.validation.JSPDirectiveValidator;org.eclipse.wst.common.componentcore.internal.ModuleCoreValidator;org.eclipse.wst.wsi.ui.internal.WSIMessageValidator;org.eclipse.wst.xsd.core.internal.validation.eclipse.XSDDelegatingValidator; USER_PREFERENCE=overrideGlobalPreferencesfalse eclipse.preferences.version=1 +instance/org.eclipse.core.net/org.eclipse.core.net.hasMigrated=true diff --git a/spring-webflow-samples/booking-jsf/.settings/org.hibernate.eclipse.console.prefs b/spring-webflow-samples/booking-jsf/.settings/org.hibernate.eclipse.console.prefs index f979d2ef..968ada6c 100755 --- a/spring-webflow-samples/booking-jsf/.settings/org.hibernate.eclipse.console.prefs +++ b/spring-webflow-samples/booking-jsf/.settings/org.hibernate.eclipse.console.prefs @@ -1,4 +1,5 @@ -#Fri Aug 03 13:03:09 EDT 2007 +#Thu Aug 09 13:12:30 EDT 2007 default.configuration=swf-booking-jsf eclipse.preferences.version=1 hibernate3.enabled=true +instance/org.eclipse.core.net/org.eclipse.core.net.hasMigrated=true diff --git a/spring-webflow-samples/booking-jsf/.settings/org.springframework.ide.eclipse.core.prefs b/spring-webflow-samples/booking-jsf/.settings/org.springframework.ide.eclipse.core.prefs index a2e2974e..c2d8ea59 100755 --- a/spring-webflow-samples/booking-jsf/.settings/org.springframework.ide.eclipse.core.prefs +++ b/spring-webflow-samples/booking-jsf/.settings/org.springframework.ide.eclipse.core.prefs @@ -1,5 +1,6 @@ -#Thu Aug 02 15:26:32 EDT 2007 +#Thu Aug 09 13:12:30 EDT 2007 eclipse.preferences.version=1 +instance/org.eclipse.core.net/org.eclipse.core.net.hasMigrated=true org.springframework.ide.eclipse.core.builders.enable.aopreferencemodelbuilder=true org.springframework.ide.eclipse.core.validator.enable.org.springframework.ide.eclipse.beans.core.beansvalidator=true org.springframework.ide.eclipse.core.validator.enable.org.springframework.ide.eclipse.webflow.core.validator=true diff --git a/spring-webflow-samples/booking-jsf/ivy.xml b/spring-webflow-samples/booking-jsf/ivy.xml index 39d08464..dfdb38b8 100755 --- a/spring-webflow-samples/booking-jsf/ivy.xml +++ b/spring-webflow-samples/booking-jsf/ivy.xml @@ -1,6 +1,6 @@ - + @@ -15,28 +15,24 @@ - - - - - + + + + + + - - - - - - - - + + + diff --git a/spring-webflow-samples/booking-jsf/src/main/java/META-INF/persistence.xml b/spring-webflow-samples/booking-jsf/src/main/java/META-INF/persistence.xml index f4e3d6a7..a104e6ed 100755 --- a/spring-webflow-samples/booking-jsf/src/main/java/META-INF/persistence.xml +++ b/spring-webflow-samples/booking-jsf/src/main/java/META-INF/persistence.xml @@ -5,9 +5,9 @@ version="1.0"> org.hibernate.ejb.HibernatePersistence - org.springframework.webflow.samples.booking.User - org.springframework.webflow.samples.booking.Booking - org.springframework.webflow.samples.booking.Hotel + org.springframework.webflow.samples.booking.model.User + org.springframework.webflow.samples.booking.model.Booking + org.springframework.webflow.samples.booking.model.Hotel diff --git a/spring-webflow-samples/booking-jsf/src/main/java/org/springframework/webflow/samples/booking/SearchAction.java b/spring-webflow-samples/booking-jsf/src/main/java/org/springframework/webflow/samples/booking/SearchAction.java index f83007b4..8410b644 100644 --- a/spring-webflow-samples/booking-jsf/src/main/java/org/springframework/webflow/samples/booking/SearchAction.java +++ b/spring-webflow-samples/booking-jsf/src/main/java/org/springframework/webflow/samples/booking/SearchAction.java @@ -2,11 +2,13 @@ package org.springframework.webflow.samples.booking; import java.util.List; -import javax.faces.context.FacesContext; - import org.springframework.webflow.action.MultiAction; import org.springframework.webflow.execution.Event; import org.springframework.webflow.execution.RequestContext; +import org.springframework.webflow.samples.booking.model.Booking; +import org.springframework.webflow.samples.booking.model.Hotel; +import org.springframework.webflow.samples.booking.model.User; +import org.springframework.webflow.samples.booking.service.BookingService; public class SearchAction extends MultiAction { @@ -37,15 +39,6 @@ public class SearchAction extends MultiAction { return success(); } - public String nextPage() { - HotelSearch search = (HotelSearch) FacesContext.getCurrentInstance().getApplication().getVariableResolver() - .resolveVariable(FacesContext.getCurrentInstance(), "hotelSearch"); - - search.setPage(search.getPage() + 1); - - return "findHotels"; - } - public void setBookingService(BookingService bookingService) { this.bookingService = bookingService; } diff --git a/spring-webflow-samples/booking-jsf/src/main/java/org/springframework/webflow/samples/booking/ValidateBookingAction.java b/spring-webflow-samples/booking-jsf/src/main/java/org/springframework/webflow/samples/booking/ValidateBookingAction.java index 5b3973ab..e9a6a238 100644 --- a/spring-webflow-samples/booking-jsf/src/main/java/org/springframework/webflow/samples/booking/ValidateBookingAction.java +++ b/spring-webflow-samples/booking-jsf/src/main/java/org/springframework/webflow/samples/booking/ValidateBookingAction.java @@ -8,6 +8,7 @@ import javax.faces.context.FacesContext; import org.springframework.webflow.action.AbstractAction; import org.springframework.webflow.execution.Event; import org.springframework.webflow.execution.RequestContext; +import org.springframework.webflow.samples.booking.model.Booking; public class ValidateBookingAction extends AbstractAction { diff --git a/spring-webflow-samples/booking-jsf/src/main/java/org/springframework/webflow/samples/booking/Booking.java b/spring-webflow-samples/booking-jsf/src/main/java/org/springframework/webflow/samples/booking/model/Booking.java similarity index 94% rename from spring-webflow-samples/booking-jsf/src/main/java/org/springframework/webflow/samples/booking/Booking.java rename to spring-webflow-samples/booking-jsf/src/main/java/org/springframework/webflow/samples/booking/model/Booking.java index 08d498e5..e642783b 100755 --- a/spring-webflow-samples/booking-jsf/src/main/java/org/springframework/webflow/samples/booking/Booking.java +++ b/spring-webflow-samples/booking-jsf/src/main/java/org/springframework/webflow/samples/booking/model/Booking.java @@ -1,4 +1,4 @@ -package org.springframework.webflow.samples.booking; +package org.springframework.webflow.samples.booking.model; import java.io.Serializable; import java.math.BigDecimal; @@ -16,6 +16,7 @@ import javax.persistence.Temporal; import javax.persistence.TemporalType; import javax.persistence.Transient; + //import org.hibernate.validator.Length; //import org.hibernate.validator.NotNull; //import org.hibernate.validator.Pattern; diff --git a/spring-webflow-samples/booking-jsf/src/main/java/org/springframework/webflow/samples/booking/Hotel.java b/spring-webflow-samples/booking-jsf/src/main/java/org/springframework/webflow/samples/booking/model/Hotel.java similarity index 97% rename from spring-webflow-samples/booking-jsf/src/main/java/org/springframework/webflow/samples/booking/Hotel.java rename to spring-webflow-samples/booking-jsf/src/main/java/org/springframework/webflow/samples/booking/model/Hotel.java index 0cd4afad..e6800add 100755 --- a/spring-webflow-samples/booking-jsf/src/main/java/org/springframework/webflow/samples/booking/Hotel.java +++ b/spring-webflow-samples/booking-jsf/src/main/java/org/springframework/webflow/samples/booking/model/Hotel.java @@ -1,4 +1,4 @@ -package org.springframework.webflow.samples.booking; +package org.springframework.webflow.samples.booking.model; import java.io.Serializable; import java.math.BigDecimal; diff --git a/spring-webflow-samples/booking-jsf/src/main/java/org/springframework/webflow/samples/booking/User.java b/spring-webflow-samples/booking-jsf/src/main/java/org/springframework/webflow/samples/booking/model/User.java similarity index 91% rename from spring-webflow-samples/booking-jsf/src/main/java/org/springframework/webflow/samples/booking/User.java rename to spring-webflow-samples/booking-jsf/src/main/java/org/springframework/webflow/samples/booking/model/User.java index 4a11fd90..e7c0d04c 100755 --- a/spring-webflow-samples/booking-jsf/src/main/java/org/springframework/webflow/samples/booking/User.java +++ b/spring-webflow-samples/booking-jsf/src/main/java/org/springframework/webflow/samples/booking/model/User.java @@ -1,4 +1,4 @@ -package org.springframework.webflow.samples.booking; +package org.springframework.webflow.samples.booking.model; import java.io.Serializable; diff --git a/spring-webflow-samples/booking-jsf/src/main/java/org/springframework/webflow/samples/booking/BookingService.java b/spring-webflow-samples/booking-jsf/src/main/java/org/springframework/webflow/samples/booking/service/BookingService.java similarity index 56% rename from spring-webflow-samples/booking-jsf/src/main/java/org/springframework/webflow/samples/booking/BookingService.java rename to spring-webflow-samples/booking-jsf/src/main/java/org/springframework/webflow/samples/booking/service/BookingService.java index 5fc793d7..9fd00efc 100755 --- a/spring-webflow-samples/booking-jsf/src/main/java/org/springframework/webflow/samples/booking/BookingService.java +++ b/spring-webflow-samples/booking-jsf/src/main/java/org/springframework/webflow/samples/booking/service/BookingService.java @@ -1,7 +1,11 @@ -package org.springframework.webflow.samples.booking; +package org.springframework.webflow.samples.booking.service; import java.util.List; +import org.springframework.webflow.samples.booking.model.Booking; +import org.springframework.webflow.samples.booking.model.Hotel; +import org.springframework.webflow.samples.booking.model.User; + public interface BookingService { public List findBookings(User user); diff --git a/spring-webflow-samples/booking-jsf/src/main/java/org/springframework/webflow/samples/booking/JpaBookingService.java b/spring-webflow-samples/booking-jsf/src/main/java/org/springframework/webflow/samples/booking/service/JpaBookingService.java similarity index 87% rename from spring-webflow-samples/booking-jsf/src/main/java/org/springframework/webflow/samples/booking/JpaBookingService.java rename to spring-webflow-samples/booking-jsf/src/main/java/org/springframework/webflow/samples/booking/service/JpaBookingService.java index 6cb99058..09334c56 100755 --- a/spring-webflow-samples/booking-jsf/src/main/java/org/springframework/webflow/samples/booking/JpaBookingService.java +++ b/spring-webflow-samples/booking-jsf/src/main/java/org/springframework/webflow/samples/booking/service/JpaBookingService.java @@ -1,4 +1,4 @@ -package org.springframework.webflow.samples.booking; +package org.springframework.webflow.samples.booking.service; import java.util.List; @@ -8,6 +8,9 @@ import javax.persistence.PersistenceContext; import org.springframework.stereotype.Repository; import org.springframework.transaction.annotation.Transactional; import org.springframework.util.StringUtils; +import org.springframework.webflow.samples.booking.model.Booking; +import org.springframework.webflow.samples.booking.model.Hotel; +import org.springframework.webflow.samples.booking.model.User; @Repository public class JpaBookingService implements BookingService { diff --git a/spring-webflow-samples/booking-jsf/src/main/java/org/springframework/webflow/samples/booking/services-config-jpa.xml b/spring-webflow-samples/booking-jsf/src/main/java/org/springframework/webflow/samples/booking/service/services-config-jpa.xml similarity index 95% rename from spring-webflow-samples/booking-jsf/src/main/java/org/springframework/webflow/samples/booking/services-config-jpa.xml rename to spring-webflow-samples/booking-jsf/src/main/java/org/springframework/webflow/samples/booking/service/services-config-jpa.xml index f3cfae27..126f0c91 100755 --- a/spring-webflow-samples/booking-jsf/src/main/java/org/springframework/webflow/samples/booking/services-config-jpa.xml +++ b/spring-webflow-samples/booking-jsf/src/main/java/org/springframework/webflow/samples/booking/service/services-config-jpa.xml @@ -25,7 +25,7 @@ + class="org.springframework.webflow.samples.booking.service.JpaBookingService" /> diff --git a/spring-webflow-samples/booking-jsf/src/main/java/org/springframework/webflow/samples/booking/DebuggingPhaseListener.java b/spring-webflow-samples/booking-jsf/src/main/java/org/springframework/webflow/samples/booking/util/DebuggingPhaseListener.java similarity index 92% rename from spring-webflow-samples/booking-jsf/src/main/java/org/springframework/webflow/samples/booking/DebuggingPhaseListener.java rename to spring-webflow-samples/booking-jsf/src/main/java/org/springframework/webflow/samples/booking/util/DebuggingPhaseListener.java index 8274d5ff..c3ae80d7 100644 --- a/spring-webflow-samples/booking-jsf/src/main/java/org/springframework/webflow/samples/booking/DebuggingPhaseListener.java +++ b/spring-webflow-samples/booking-jsf/src/main/java/org/springframework/webflow/samples/booking/util/DebuggingPhaseListener.java @@ -1,4 +1,4 @@ -package org.springframework.webflow.samples.booking; +package org.springframework.webflow.samples.booking.util; import javax.faces.event.PhaseEvent; import javax.faces.event.PhaseId; diff --git a/spring-webflow-samples/booking-jsf/src/main/webapp/META-INF/MANIFEST.MF b/spring-webflow-samples/booking-jsf/src/main/webapp/META-INF/MANIFEST.MF new file mode 100644 index 00000000..58630c02 --- /dev/null +++ b/spring-webflow-samples/booking-jsf/src/main/webapp/META-INF/MANIFEST.MF @@ -0,0 +1,2 @@ +Manifest-Version: 1.0 + diff --git a/spring-webflow-samples/booking-jsf/src/main/webapp/WEB-INF/faces-config.xml b/spring-webflow-samples/booking-jsf/src/main/webapp/WEB-INF/faces-config.xml index 36489e62..d7b5ce35 100755 --- a/spring-webflow-samples/booking-jsf/src/main/webapp/WEB-INF/faces-config.xml +++ b/spring-webflow-samples/booking-jsf/src/main/webapp/WEB-INF/faces-config.xml @@ -12,7 +12,7 @@ - org.springframework.webflow.samples.booking.DebuggingPhaseListener + org.springframework.webflow.samples.booking.util.DebuggingPhaseListener org.springframework.webflow.executor.jsf.FlowPhaseListener 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 2b142616..f618a581 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 @@ -7,7 +7,7 @@ contextConfigLocation - classpath:org/springframework/webflow/samples/booking/services-config-jpa.xml + classpath:org/springframework/webflow/samples/booking/service/services-config-jpa.xml /WEB-INF/webflow-config.xml diff --git a/spring-webflow-samples/booking-jsf/src/main/webapp/WEB-INF/webflow-config.xml b/spring-webflow-samples/booking-jsf/src/main/webapp/WEB-INF/webflow-config.xml index 6829c8e9..f0365bbd 100755 --- a/spring-webflow-samples/booking-jsf/src/main/webapp/WEB-INF/webflow-config.xml +++ b/spring-webflow-samples/booking-jsf/src/main/webapp/WEB-INF/webflow-config.xml @@ -1,17 +1,20 @@ + http://www.springframework.org/schema/webflow-config/spring-webflow-config-1.1.xsd + http://www.springframework.org/schema/aop + http://www.springframework.org/schema/aop/spring-aop-2.0.xsd"> - + diff --git a/spring-webflow-samples/booking-jsf/src/main/webapp/flows/main/main-flow.xml b/spring-webflow-samples/booking-jsf/src/main/webapp/flows/main/main-flow.xml index f950199c..33c2eed7 100755 --- a/spring-webflow-samples/booking-jsf/src/main/webapp/flows/main/main-flow.xml +++ b/spring-webflow-samples/booking-jsf/src/main/webapp/flows/main/main-flow.xml @@ -5,7 +5,7 @@ http://www.springframework.org/schema/webflow/spring-webflow-1.0.xsd"> - + diff --git a/spring-webflow-samples/booking-jsf/src/main/webapp/intro.xhtml b/spring-webflow-samples/booking-jsf/src/main/webapp/intro.xhtml index 77deed35..c7f980a3 100755 --- a/spring-webflow-samples/booking-jsf/src/main/webapp/intro.xhtml +++ b/spring-webflow-samples/booking-jsf/src/main/webapp/intro.xhtml @@ -11,12 +11,9 @@

- (launch with a JSF command link) +

-

- Book Hotels (launch with a regular anchor tag) -