This commit is contained in:
Keith Donald
2008-07-29 19:59:27 +00:00
parent a7b508b76f
commit 4d6ed71933
4 changed files with 10 additions and 10 deletions

View File

@@ -7,15 +7,15 @@
<persistence-context/>
<input name="hotelId" required="true"/>
<input name="hotelId" required="true" />
<on-start>
<evaluate expression="bookingService.createBooking(hotelId, currentUser.name)" result="flowScope.booking" />
</on-start>
<view-state id="enterBookingDetails" model="booking">
<transition on="proceed" to="reviewBooking"/>
<transition on="cancel" to="bookingCancelled" bind="false"/>
<transition on="proceed" to="reviewBooking" />
<transition on="cancel" to="bookingCancelled" bind="false" />
</view-state>
<view-state id="reviewBooking">

View File

@@ -10,11 +10,11 @@
<evaluate expression="bookingService.findBookings(currentUser.name)" result="viewScope.bookings" result-type="dataModel" />
</on-render>
<transition on="search" to="reviewHotels">
<evaluate expression="searchCriteria.resetPage()"/>
<evaluate expression="searchCriteria.resetPage()" />
</transition>
<transition on="cancelBooking">
<evaluate expression="bookingService.cancelBooking(bookings.selectedRow)" />
<render fragments="bookingsFragment"/>
<render fragments="bookingsFragment" />
</transition>
</view-state>
@@ -23,7 +23,7 @@
<evaluate expression="bookingService.findHotels(searchCriteria)" result="viewScope.hotels" result-type="dataModel" />
</on-render>
<transition on="sort">
<set name="searchCriteria.sortBy" value="requestParameters.sortBy"/>
<set name="searchCriteria.sortBy" value="requestParameters.sortBy" />
<render fragments="hotels:searchResultsFragment" />
</transition>
<transition on="previous">

View File

@@ -7,7 +7,7 @@
<persistence-context/>
<input name="hotelId" required="true"/>
<input name="hotelId" required="true" />
<on-start>
<evaluate expression="bookingService.createBooking(hotelId, currentUser.name)" result="flowScope.booking" />
@@ -36,6 +36,6 @@
<end-state id="bookingConfirmed" commit="true" />
<end-state id="cancel"/>
<end-state id="cancel" />
</flow>

View File

@@ -77,8 +77,8 @@ public interface FlowModelBuilder {
public Resource getFlowModelResource();
/**
* Returns true if the underlying flow model resource has changed since the last call to {@link #init()}. Always
* returns false if the flow model is not build from a resource.
* Returns true if the underlying flow model resource has changed since the last call to {@link #init()}.
* Always returns false if the flow model is not build from a resource.
* @return true if the resource backing the flow model has changed
*/
public boolean hasFlowModelResourceChanged();