Expert Spring MVC and Web Flow
AttributeMappers The org.springframework.binding.AttributeMapper, shown in Listing 12-8, is a generic serv- ice interface for ma ...
Custom AttributeMappers If the default implementation (org.springframework.webflow.support. ParameterizableFlowAttributeMapper) ...
An inline flow has the exact same behavior as a subflow; they are both flows, but inline flows exist entirely within the contain ...
Summary Flow definitions have two levels of granularity, shown in Table 12-1. Table 12-1.Flow Definition Flo ...
■Tip It may be helpful to think of a flow as a method call, just one that can span many requests into the server. Following this ...
Table 12-2.Provided Adapters for ExternalContext Adapter Class Description org.springframework.webflow.context. Provides informa ...
public ViewSelection signalEvent( String eventId, String flowExecutionId, ExternalContext context ) throws FlowException; } ■Not ...
Listing 12-13.org.springframework.webflow.execution.FlowExecution public interface FlowExecution extends FlowExecutionContext { ...
Figure 12-2.FlowSession life cycle Table 12-4.Status of the FlowSession Status Meaning Event Created The FlowSessionhas been cre ...
an Actionor a FlowAttributeMapper. It is a convenient façade that allows you to access infor- mation about the currently executi ...
Listing 12-16.org.springframework.webflow.execution.FlowExecutionListener public interface FlowExecutionListener { void requestS ...
FlowExecution Repositories When an active FlowExecutionneeds to be persisted (saved before a page is displayed) or loade ...
Continuations Continuations (http://www-128.ibm.com/developerworks/java/library/j-contin.html, http://en.wikipedia.org/wiki/Cont ...
Like anything, however, there are trade-offs. And continuations are no exception. Specifically: •Creating copies of a FlowExecut ...
FlowExecutionRepository Implementations As discussed, Spring Web Flow represents an execution of a flow in the FlowExecutionobje ...
It stores snapshots of FlowExecutions that represent a stateful user conversation in an in-memory map. Each map entry key is a c ...
There are trade-offs to consider when evaluating this strategy: •If the flowExecutionis large then it becomes more expensive to ...
Table 12-7.Different States Name Description Action state Executes your application code, typically delegating to a business ser ...
Now let’s look at an alternative, using named actions within one action state, as shown in Listing 12-20. Listing 12-20.Using Na ...
Table 12-9.FormAction Coarse-Grained Methods Method Purpose Life Cycle setupForm() Calls exposeFormObject, but Before the form i ...
«
13
14
15
16
17
18
19
20
21
22
»
Free download pdf