Announcement Announcement Module
Collapse
No announcement yet.
Restarting flow with new model values... Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Restarting flow with new model values...

    I am trying to find a way that if the user restarts the flow the values are not in it. If you look at my flow below you can see that the user enters data, previews it and then saves it.. after the save the user can go back to enter new data into the input screen but with my current setup the screen shows the pre-data. how can I clear it on restart?

    Code:
    <flow xmlns="http://www.springframework.org/schema/webflow"
    	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    	xsi:schemaLocation="http://www.springframework.org/schema/webflow
                              http://www.springframework.org/schema/webflow/spring-webflow-2.0.xsd">
                              
        <var name="customer" class="org.uftwf.domain.Customer"/>
    
        <view-state id="helloworld" view="input.jsp" model="customer" popup="true">
        		<transition on="submit" to="preview" />
        		<transition on="cancel" to="thanks" validate="false"/>
    	</view-state>
    
        <view-state id="preview"  model="customer">
    	 		<transition on="cancel" to="helloworld"/>
    	 		<transition on="accept" to="save">
    	 			<evaluate expression="hellowWorldFlowActions.addCustomer(customer)"/>
    	 		</transition>
    	</view-state>
    	
    	<view-state id="save"  model="customer">
    	 		<transition on="accept" to="thanks"/>
    	</view-state>
    	
    	<view-state id="thanks">
    	 		<transition on="restart" to="helloworld"/>
    	</view-state>
    	
    </flow>
Working...
X