Results 1 to 2 of 2

Thread: spring webflow 2.3: flow always take back to previous flow page

  1. #1
    Join Date
    May 2011
    Posts
    3

    Default spring webflow 2.3: flow always take back to previous flow page

    I have below refill-flow.xml

    <view-state id="deliveryMethod" >
    <transition on="proceed" to="easypay" />
    <transition on="cancel" to="cancel" />
    </view-state>

    <view-state id="easypay">
    <transition on="proceed" to="summary" />
    <transition on="back" to="deliveryMethod" />
    <transition on="cancel" to="cancel" />
    </view-state>


    <end-state id="summary"/>

    <end-state id="cancel" />
    deliveryMethod.jsp, easypay.jsp, summary.jsp, cancel.jsp are in same folder as refill-flow.xml.

    deliveryMethod.jsp looks like
    <%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>

    <form:form action="${flowExecutionUrl}">
    <table>
    <tr>
    <td>Method1:</td>
    <td>store pickup</td>
    </tr>
    <tr>
    <td>Method 2:</td>
    <td>home delivery</td>
    </tr>
    <tr>
    <td>
    <button type="submit" id="proceed" name="_eventId_proceed">Proceed</button>
    </td>
    <td>
    <button type="submit" id="proceed" name="_eventId_cancel">Cancel</button>


    </td>
    </tr>
    </table>
    </form:form>
    and easypay.jsp looks like

    <%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>

    <form:form action="${flowExecutionUrl}">
    <table>
    <tr>
    <td>Method1:</td>
    <td>easypay</td>
    </tr>
    <tr>
    <td>Method 2:</td>
    <td>one time</td>
    </tr>
    <tr>
    <td>
    <button type="submit" name="_eventId_proceed">Proceed</button>
    </td>
    <td>
    <button type="submit" name="_eventId_cancel">Cancel</button>


    </td>
    </tr>
    </table>
    </form:form>

    on start of the flow, I see URL "http://localhost:8081/xxxx/spring/views/refill?execution=e1s1" and deliveryMethod.jsp is rendered with text and Proceed and Cancel button.
    On click of Proceed button, I see URL http://localhost:8081/xxxx/spring/vi...execution=e1s2 and easypay.jsp is rendered. BUT on click of Proceed and Cancel take me bake to deliveryMethod.jsp instead summary.jsp /cancel.jsp.

    any suggestions?

  2. #2
    Join Date
    May 2011
    Posts
    3

    Default fixed it

    fixed it by defining customized flow handler

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •