webflow enabling

simplication
This commit is contained in:
Keith Donald
2007-04-01 16:57:23 +00:00
parent c2eabbfd49
commit 12e5ca2a77
7 changed files with 38 additions and 29 deletions

View File

@@ -26,17 +26,12 @@
<start-state idref="displayItem"/>
<view-state id="displayItem" view="item">
<transition on="submit" to="mapItem" />
<transition on="submit" to="finish" />
</view-state>
<action-state id="mapItem">
<action bean="mapItemAction" />
<transition on="success" to="finish" />
</action-state>
<end-state id="finish">
<output-mapper>
<mapping source="flowScope.item" target="item" />
<mapping source="requestParameters.data" target="item" />
</output-mapper>
</end-state>
</flow>

View File

@@ -49,10 +49,4 @@
<bean id="addItemAction" class="org.springframework.webflow.samples.itemlist.AddItemAction" />
<bean id="mapItemAction" class="org.springframework.webflow.action.AttributeMapperAction">
<constructor-arg>
<bean class="org.springframework.webflow.samples.itemlist.DataMapper" />
</constructor-arg>
</bean>
</beans>

View File

@@ -11,6 +11,9 @@
<P>
<A href="app/itemlist">Item List</A>
</P>
<P>
<A href="app/itemlist-alternate">Item List Alternate</A> (same flow with the 'add item' process modeled as a subflow)
</P>
<P>
This Spring web flow sample application illustrates several features:
</P>