Author(s)J.Enrique Ruiz, C�sar Ordi�ana, Erwin Vervaet, Keith Donald
Point of integration between Spring Portlet MVC and Spring Web Flow: a
Controller that routes incoming portlet requests to one or more
managed flow executions.
Requests into the web flow system are handled by a FlowExecutor ,
which this class delegates to. Consult the JavaDoc of that class for more
information on how requests are processed.
Note: a single PortletFlowController may execute all flows within your
portlet. See the phonebook-portlet sample application for examples of the
various strategies for launching and resuming flow executions in a Portlet
environment.
Usage example:
<!--
Exposes flows for execution.
-->
<bean id="flowController" class="org.springframework.webflow.executor.mvc.PortletFlowController">
<property name="flowLocator" ref="flowRegistry"/>
<property name="defaultFlowId" value="example-flow"/>
</bean>
<!-- Creates the registry of flow definitions for this application -->
<bean name="flowRegistry" class="org.springframework.webflow.config.registry.XmlFlowRegistryFactoryBean">
<property name="flowLocations" value="/WEB-INF/flows/*-flow.xml"/>
</bean>
It is also possible to customize the FlowExecutorArgumentExtractor
strategy to allow for different types of controller parameterization, for
example perhaps in conjunction with a REST-style request mapper.
Requests into the web flow system are handled by a FlowExecutor , which this class delegates to. Consult the JavaDoc of that class for more information on how requests are processed.
Note: a single PortletFlowController may execute all flows within your portlet. See the phonebook-portlet sample application for examples of the various strategies for launching and resuming flow executions in a Portlet environment.
Usage example:
<!-- Exposes flows for execution. --> <bean id="flowController" class="org.springframework.webflow.executor.mvc.PortletFlowController"> <property name="flowLocator" ref="flowRegistry"/> <property name="defaultFlowId" value="example-flow"/> </bean> <!-- Creates the registry of flow definitions for this application --> <bean name="flowRegistry" class="org.springframework.webflow.config.registry.XmlFlowRegistryFactoryBean"> <property name="flowLocations" value="/WEB-INF/flows/*-flow.xml"/> </bean>It is also possible to customize the FlowExecutorArgumentExtractor strategy to allow for different types of controller parameterization, for example perhaps in conjunction with a REST-style request mapper.