webflow enabling
simplication
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user