clearer exp syntax

This commit is contained in:
Keith Donald
2007-10-29 23:51:48 +00:00
parent 24d0f1969e
commit f3c5c4c1a8
6 changed files with 9 additions and 16 deletions

View File

@@ -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>

View File

@@ -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" />

View File

@@ -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">

View File

@@ -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>

View File

@@ -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>

View File

@@ -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" />