spring-webflow icon indicating copy to clipboard operation
spring-webflow copied to clipboard

Flow restart on any browser but firefox [SWF-1673]

Open spring-operator opened this issue 10 years ago • 1 comments

Paweł Rymaszewski opened SWF-1673 and commented

I have flow defined like this:

<?xml version="1.0" encoding="UTF-8"?>
<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">

    <view-state id="start" view="secure.view1" model="flowModel">
        <on-entry>
            <evaluate expression="actionbean1.setupForm"/>
            <evaluate expression="actionbean2.setupForm"/>
        </on-entry>
        <transition on="action1" to="actionState1"/>
        <transition on="action2" to="actionState2"/>
    </view-state>

    <action-state id="action1">
        <evaluate expression="actionbean1.action"/>
        <transition to="start"/>
    </action-state>

    <action-state id="actionState2">
        <evaluate expression="actionbean2.action2"/>
        <transition to="start"/>
    </action-state>

</flow>

The page has 2 submit buttons and 2forms that handle 2 actions defined in the flow (they call events). When I'm trying to execute those actions twice, ie. I choose my options, execute action 1, I choose my options again and execute it again, the form object is getting lost and new form object is created. This behaviour only occurs on Chrome, Safari and IE. Firefox preserves the form object state. Maybe i'm missing something here, but I have strong feeling this is a bug.


No further details from SWF-1673

spring-operator avatar Nov 03 '15 08:11 spring-operator

Paweł Rymaszewski commented

action1 is wrong it should be like this ofcourse:

<action-state id="actionState1">
    <evaluate expression="actionbean1.action"/>
    <transition to="start"/>
</action-state>

spring-operator avatar Nov 03 '15 08:11 spring-operator