title: Web flow add model attribute for binding with form values
body: <p>I'm new to web flow, so I'm not sure how to do this:
  I have a spring mvc controller, and I have a spring webflow. One of the flow states is supposed to display a form for adding a new client. In the controller I have methods for saving the Client object (binded to the form as modelAttribute = "client") to the database. I don't know how to pass the control from the webflow to the controller and back or create a model Attribute directly in the flow for binding with the form (but as I understand later I'd still have to redirect to the controller).</p>
  
  <p>Please help me, what's the best logic (solution) in this situation ? </p>
  
  <p>I tried:</p>
  
  <pre><code>&lt;view-state id="clientOptions" view="options" model="client"&gt;
      &lt;transition on="submit" to="confirm"/&gt;
      &lt;transition on="back" to="viewCart"/&gt;
  &lt;/view-state&gt;
  </code></pre>
  
  <p>my form is in the options view and the binding goes like this</p>
  
  <pre><code>&lt;form:form modelAttribute="client" method="post"&gt;
  </code></pre>