Expert Spring MVC and Web Flow
Table 11-4.Action Execution Points Within the Flow Life Cycle Point Description On flow start Execute one or more “start actions ...
However, you have not defined the mapping between that identifier and a specific Action implementation. This is where the existi ...
When invoked, setupFormwill create an instance of the purchase.domain.Purchaseform object class and place it in flow scopeunder ...
In this case, execution of the preceding purchase flow needs testing. Specifically, the fol- lowing can be asserted: When the f ...
ViewSelection selectedView = signalEvent("submit", parameters); Purchase purchase = (Purchase)selectedView.getModel().get("purch ...
As you can see, if the shippingproperty of the purchasebean in flow scopeevaluates to true, the flow will transition to the ente ...
<decision-state id="requiresShipping"> <if test="${flowScope.purchase.shipping}" then="enterShippingDetails" ➥ else="pl ...
End states effectively define possible flow outcomes (see Listing 11-12). In the Purchase Product flow there are two possible ou ...
Spring MVC Deployment To deploy the flow for execution within a Spring MVC environment, you need to define a FlowControllerwhich ...
Listing 11-15./WEB-INF/flow.xmlIncluding All Available Flows <bean name="flowRegistry" class="org.springframework.webflow.reg ...
Those are the only two requirements: each view wishing to participate in an executing flow must submit the _flowExecutionIdparam ...
Figure 11-6.View of the View->Server->View Interaction Summary Spring Web Flow was designed from the outset to manage the ...
Allows for Extension Spring Web Flow was designed from the ground up to be as extensible as possible. This is achieved through p ...
Advanced Spring Web Flow This chapter builds on the introduction we presented in Chapter 11 and covers some of the more advanced ...
<transition on="checkPermissions.error" to="accessDenied.view"/> <transition on="checkPermissions.success" to="nextActi ...
Flow Granularity Flows come in varying granularities, from large top-level flows composed of many smaller subflows to self-conta ...
Listing 12-3.The Purchase Product Flow Definition <flow start-state="enterPurchaseInformation"> <view-state id="enterPu ...
<view-state id="enterShippingDetails" view="shippingForm"> <entry-actions> <action bean="formAction" method="setu ...
<property name="formObjectClass" value="purchase.domain.Shipping"/> <property name="formObjectScope" value="FLOW"/> ...
■Tip Remember, by default the name of the flow is derived from the name of the file it is defined in. Because the file i ...
«
13
14
15
16
17
18
19
20
21
22
»
Free download pdf