Store model on each view-state
Hi!
I want to store the edited model, set on the view-state model property, for each view state.
Example:
Code:
<view-state id="firstThing" model="thing">
...
</view-state>
<view-state id="secondThing" model="thing">
...
</view-state>
Why?
Because, when I fill in my first model, proceeding to the second state and then go back, the Form is prefilled with those values form the secondThing step.
You would suggest now, that I could use flow-variables thing1 and think2 and edit them separately. BUT then I have two redundant vaidators!
Is there a nice solution?!?
Spring 3.X, Web Flow 2.X, Java 6, STS 2.7.0, Maven, OS X