Attempting to integrate Spring WebFlow into Blossom.  At present the initial 
state is detected, the view is displayed.  The problem is that the transition 
is not triggering (tied to eventId of button in view).
Below is code for webflow-config, registration-flow.config, and 
regBasicInfo.jsp.

Please advise how to get transition to trigger.
As an aside, the same views and registration-flow.xml  work in standalone 
SpringMVC app.


<!—registration-flow.xml, header, opening tag omitted for brevity -->
                <view-state id="register" view="regBasicInfo.jsp"> 
                                <transition on="submitRegistration" 
to="register-success" />
                </view-state>

                <view-state id="register-success" view="regSuccess.jsp">
                                <transition on="continue" to="exit" />
                </view-state>
                <end-state id="exit" view="externalRedirect:/welcome" />

webflow-config.xml

<beans xmlns="http://www.springframework.org/schema/beans";
                xmlns:context="http://www.springframework.org/schema/context";
                xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xmlns:webflow="http://www.springframework.org/schema/webflow-config";
                xsi:schemaLocation="
        http://www.springframework.org/schema/beans     
        http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
        http://www.springframework.org/schema/webflow-config
                
http://www.springframework.org/schema/webflow-config/spring-webflow-config-2.0.xsd";>

                <!-- Registers webflow scopes. This allows you to use them in 
addition to 
                                the usual Spring scopes. These scopes are 
flash, view, flow and conversation. -->
                <bean class="org.springframework.webflow.scope.ScopeRegistrar" 
/>

                <!-- Deploy a flow executor -->
                <webflow:flow-executor id="flowExecutor"
                                flow-registry="flowRegistry" />

                <webflow:flow-builder-services id="flowBuilderServices"
                                view-factory-creator="mvcViewFactoryCreator" 
development="true" />

                <!-- Register all Web Flow definitions under 
/WEB-INF/flows/**/*-flow.xml -->
                <webflow:flow-registry id="flowRegistry">
                                <webflow:flow-location 
path="classpath:registration-flow.xml" />
                </webflow:flow-registry>
</beans>

regBasicInfo.jsp                                                       
<form method="post">
       Enter your name: <input type="text" name="userName" value="" />
       <input type="hidden" name="_flowExecutionKey" 
value="${flowExecutionKey}" />
       <input type="submit" class="button" name="_eventId_submitRegistration" 
value="Click to Register" />
</form>

-- 
Context is everything: 
http://forum.magnolia-cms.com/forum/thread.html?threadId=7b8c4770-e439-4025-8228-8f0c6bc9a3f2


----------------------------------------------------------------
For list details, see http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

  • [magnolia-user] Spring WebFlow i... Christopher Cotton (via Magnolia Forums)

Reply via email to