Page 2 of 2 FirstFirst 12
Results 11 to 13 of 13

Thread: context.getModel() or other "session" data

  1. #11
    Join Date
    Dec 2004
    Location
    CA
    Posts
    208

    Default

    For me, it is just a matter of preference, I hate having all of these xml configuration files laying around. However, it seems I might have to change to XML flows, since all flows are discussed and demonstrated in that way, at least in this Forum. Also, I have to admit they are more intuitive.

    Perhaps all spriing web flow examples should have an equivalent Java-base flow.

    _CJ

  2. #12
    Join Date
    Sep 2004
    Location
    Leuven, Belgium
    Posts
    1,853

    Default

    Here is an example of a view state with a setup action and a "bindAndValidate" on a transition. This kind of defines a "form state" (similar to the SimpleFormController) in a single SWF state:

    Code:
    	<view-state id="showMyForm" view="myForm">
    		<setup bean="myFormAction" method="setupForm"/>
    		<transition on="cancel" to="previousState"/>
    		<transition on="submit" to="nextState">
    			<action bean="myFormAction" method="bindAndValidate"/>
    		</transition>
    	</view-state>
    Erwin

  3. #13
    Join Date
    Sep 2004
    Location
    Leuven, Belgium
    Posts
    1,853

    Default

    I've added an alternative flow definition to the BirthDate sample app to illustrate this kind of "form state". It's in birthDate-flow-simplefied.xml.

    On a related note: there is actually a bug in PR3 that prevents the "form state" from working properly: you loose your bindAndValidate errors. I've already fixed the issue so if you grab a CVS snapshot everything is working again.

    Erwin

Similar Threads

  1. Replies: 2
    Last Post: Oct 18th, 2005, 10:08 AM
  2. How to persist model data in session
    By thenakedsingularity in forum Web
    Replies: 8
    Last Post: Aug 4th, 2005, 01:04 PM
  3. Multiple Data Sources + Hibernate + Spring
    By joeserel in forum Data
    Replies: 2
    Last Post: May 18th, 2005, 09:22 AM
  4. injecting complex configuration data
    By fox9 in forum Container
    Replies: 2
    Last Post: Feb 25th, 2005, 07:23 AM
  5. Data Secutiry - Filtering Data
    By porcelli in forum Security
    Replies: 3
    Last Post: Dec 30th, 2004, 12:01 AM

Posting Permissions

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