facebook

Spring WebFlow 2.0 ==> No more formAction? Data binding,

  1. MyEclipse IDE
  2.  > 
  3. Off Topic
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #302907 Reply

    johnSteele
    Member

    Hey,

    I’m learing WebFlow 2.0, and I’m not understanding how to create, or pass a backing object model.

    Even though I don’t know 1.0, I do understand how formAction works; however, 2.0 doesn’t have formAction, and I’ve heard it’s not best practice to use a set up like that.

    I’ve read throughout the webflow 2.0 reference, and I’m still stuck.

    First off when I click on a link it should then enter this flow. This flow should then create a backing object “person”, where I can then bind “from the purchaseForm” the properties. After the client then submits the form, I’d like to be able to first bind the data, then pass the model to another view-state. “I’m really looking for best practice here” because I’ve seen so many ways using EL and such that I’m not sure which way to do it.

    
    <!-- Create a backing object -->
    <on-start>
     <evaluate expression="mycart.person.newPerson" result="flowScope.person" />
    </on-start>  
          
    <!-- New customers create a new account before moving forward -->
    <view-state id="purchaseForm" view="purchaseForm">
     <on-render>
      <set name="requestScope.person" value="person"></set>
     </on-render>
     <transition on="thanks" to="thanks" />
    </view-state>
        
    <view-state id="thanks" model="person" view="thanks" >
     <transition on="submit" to="purchaseForm" />
    </view-state>
    
    #302929 Reply

    support-joy
    Member

    John,

    Currently ME supports Spring WebFlow 1.0. I would recommend you to go through our educational material here – http://www.myeclipseide.com/index.php?module=htmlpages&func=display&pid=7
    I would recommend you to cross post to Spring WebFlow forums, you might get more detailed support related to your issue.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Spring WebFlow 2.0 ==> No more formAction? Data binding,

You must be logged in to post in the forum log in