Announcement Announcement Module
Collapse
No announcement yet.
is possible that a end-state redirect to a view-state? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • is possible that a end-state redirect to a view-state?

    Hi i have a problem.
    I want redirect the user on a view-state of the same flow, after the end-state.
    is possible? and how?

    this is my flow:

    <?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">


    <persistence-context/>

    <var name="attribute" class="it.cilab.uniba.recommender.model.Attribute"/>
    <var name="fse" class="it.cilab.uniba.recommender.model.FuzzySetEl ement"/>
    <var name="att" class="it.cilab.uniba.recommender.model.Attribute"/>
    <var name="att1" class="it.cilab.uniba.recommender.model.Attribute"/>

    <on-start>
    <evaluate expression="attributeService.listAll()" result="att" />
    <evaluate expression="fuzzySetElementService.createEmpty()" result="fse"></evaluate>
    <evaluate expression="attributeService.getById(18)" result="att1"></evaluate>
    </on-start>

    <view-state id="insertAttribute" view="insertAttribute" model="attribute">
    <binder>
    <binding property="idAttribute" required="true" />
    <binding property="name" required="true" />
    </binder>
    <transition on="confirm" to="insertfse" />
    </view-state>

    <view-state id="insertfse" view="insertfuzzysetelement" model="fse">
    <binder>
    <binding property="attribute" required="true" converter="attribute" />
    <binding property="name" required="true"/>
    </binder>
    <transition on="otherfse" to="insertfse" bind="true" >
    <evaluate expression="persistenceContext.merge(fse)"/>
    </transition>
    <transition on="otheratt" to="insertAttribute" bind="false" />
    </view-state>

    <end-state id="insertOK" commit="true" />
    i want that the <end-state id="insertOK" redirect to the view-state id="insertfse"

    how i can do it?

    thank you so much

  • #2
    Do you reach your endstate? I don't see any transition pointing to your endstate. If you don't even reach it you can also get rid of it.

    Comment

    Working...
    X