Results 1 to 2 of 2

Thread: From flow B I want to call a particular view-state of flow A - Spring webflow

  1. #1
    Join Date
    Apr 2011
    Posts
    2

    Post From flow B I want to call a particular view-state of flow A - Spring webflow

    Using Spring web-flow 2.3.0, how can I call a PARTICULAR viewstate of flow A from flow B.

    Can I use subflow?

    From flow B , I want to go to viewstate="def" of flow A

    Flow B

    Code:
    <subflow-state id="actions1" subflow="A">
    </subflow-state>
    Flow A

    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">
    
    <view-state id="abc">
    </view-state>
    <view-state id="def">
    </view-state>
    can someone please tell me how to do this..dint find anything over google

  2. #2

    Default

    You can send a parameter and depending of the value of that parameter you call the corresponding view.

    <decision-state id="messageView">
    <if test="requestParameters.viewNumber=='VIEW_1'" then="view1" />
    <if test="requestParameters.viewNumber=='VIEW_2'" then="view2" />
    </decision-state>

    <view-state id="view1"></view-state>
    <view-state id="view2"></view-state>

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
  •