clearer exp syntax
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
<attribute name="persistenceContext" value="true" />
|
||||
|
||||
<input-mapper>
|
||||
<input-attribute name="id" scope="flow" />
|
||||
<input-attribute name="#{id}" scope="flow" />
|
||||
</input-mapper>
|
||||
|
||||
<start-state idref="displayHotel"/>
|
||||
@@ -22,7 +22,7 @@
|
||||
<render-actions>
|
||||
<bean-action method="findHotelById" bean="bookingService">
|
||||
<method-arguments>
|
||||
<argument expression="id" />
|
||||
<argument expression="#{id}" />
|
||||
</method-arguments>
|
||||
<method-result name="hotel" scope="flow" />
|
||||
</bean-action>
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
<subflow-state id="bookHotel" flow="booking">
|
||||
<attribute-mapper>
|
||||
<input-mapper>
|
||||
<mapping source="requestParameters.hotelId" target="id" from="string" to="long" />
|
||||
<mapping source="#{requestParameters.hotelId}" target="#{id}" from="string" to="long" />
|
||||
</input-mapper>
|
||||
</attribute-mapper>
|
||||
<transition on="bookingAuthorized" to="reloadCurrentUserBookings" />
|
||||
@@ -39,7 +39,7 @@
|
||||
<action-state id="cancelBooking">
|
||||
<bean-action method="cancelBooking" bean="bookingService">
|
||||
<method-arguments>
|
||||
<argument expression="requestParameters.bookingId" parameter-type="long"/>
|
||||
<argument expression="${requestParameters.bookingId}" parameter-type="long"/>
|
||||
</method-arguments>
|
||||
</bean-action>
|
||||
<transition on="success" to="reloadCurrentUserBookings" />
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
<div id="welcome">
|
||||
<div class="left">Spring Faces: Hotel Booking Sample Application</div>
|
||||
<div class="right">
|
||||
Welcome #{user.name}
|
||||
Welcome, #{user.name}
|
||||
</div>
|
||||
</div>
|
||||
<div id="branding" class="spring">
|
||||
|
||||
@@ -28,13 +28,6 @@
|
||||
</web:flow-registry>
|
||||
|
||||
<bean id="flowBuilderServices" class="org.springframework.webflow.engine.builder.support.FlowBuilderServices">
|
||||
<property name="expressionParser">
|
||||
<bean class="org.springframework.webflow.core.expression.el.WebFlowELExpressionParser">
|
||||
<constructor-arg >
|
||||
<bean class="org.jboss.el.ExpressionFactoryImpl"/>
|
||||
</constructor-arg>
|
||||
</bean>
|
||||
</property>
|
||||
<property name="viewFactoryCreator">
|
||||
<bean class="org.springframework.webflow.mvc.MvcViewFactoryCreator"/>
|
||||
</property>
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
<attribute name="persistenceContext" value="true" />
|
||||
|
||||
<input-mapper>
|
||||
<input-attribute name="id" scope="flow" />
|
||||
<input-attribute name="${id}" scope="flow" />
|
||||
</input-mapper>
|
||||
|
||||
<start-state idref="displayHotel"/>
|
||||
@@ -22,7 +22,7 @@
|
||||
<render-actions>
|
||||
<bean-action method="findHotelById" bean="bookingService">
|
||||
<method-arguments>
|
||||
<argument expression="id" />
|
||||
<argument expression="${id}" />
|
||||
</method-arguments>
|
||||
<method-result name="hotel" scope="flow" />
|
||||
</bean-action>
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
<subflow-state id="bookHotel" flow="booking">
|
||||
<attribute-mapper>
|
||||
<input-mapper>
|
||||
<mapping source="requestParameters.hotelId" target="id" from="string" to="long" />
|
||||
<mapping source="${requestParameters.hotelId}" target="${id}" from="string" to="long" />
|
||||
</input-mapper>
|
||||
</attribute-mapper>
|
||||
<transition on="bookingAuthorized" to="reloadCurrentUserBookings" />
|
||||
@@ -39,7 +39,7 @@
|
||||
<action-state id="cancelBooking">
|
||||
<bean-action method="cancelBooking" bean="bookingService">
|
||||
<method-arguments>
|
||||
<argument expression="requestParameters.bookingId" parameter-type="long"/>
|
||||
<argument expression="${requestParameters.bookingId}" parameter-type="long"/>
|
||||
</method-arguments>
|
||||
</bean-action>
|
||||
<transition on="success" to="reloadCurrentUserBookings" />
|
||||
|
||||
Reference in New Issue
Block a user