Results 1 to 3 of 3

Thread: Populating bean in flow scope with request parameters

  1. #1
    Join Date
    Jul 2005
    Location
    Los Angeles, USA
    Posts
    25

    Default Populating bean in flow scope with request parameters

    I have a java bean representing a Product used throughout a flow. On some view states in the flow, there are fields which allow the user to update certain fields. The action methods to which these views transition get the bean from request scope (bound with values from the form) and use these to update the bean at flow scope.

    Is there a way I can have the binder operate on the flow scope bean directly?

  2. #2
    Join Date
    Dec 2004
    Location
    CA
    Posts
    208

    Default

    I don't quite understand why your form object need to be in two different scopes. However, if you form object is going to get manipulated through out your flow, just set the scope to flow.

    For example,

    setFormObjectScope (ScopeType.FLOW);

    Curtney
    Curtney Jacobs

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

    Default

    The FormAction that comes with SWF basically takes care of "binding and validation", as you know it from SpringMVC. Check the JavaDoc (http://static.springframework.org/sp...ormAction.html) of that class for more info and check e.g. the "sellitem" sample which illustrates it's use in a wizard like scenario.

    Erwin

Similar Threads

  1. Hibernate Long Session Per Flow?
    By akw in forum Web Flow
    Replies: 21
    Last Post: Dec 12th, 2005, 08:06 PM
  2. Spring container fails with no exception
    By naor in forum Container
    Replies: 9
    Last Post: Oct 1st, 2005, 03:39 PM
  3. EHCaching Hibernate
    By dencamel in forum Data
    Replies: 3
    Last Post: Sep 6th, 2005, 09:03 PM
  4. could not satisfy dependencies
    By springuser in forum Container
    Replies: 4
    Last Post: Apr 26th, 2005, 01:15 PM
  5. Replies: 1
    Last Post: Apr 25th, 2005, 07:37 PM

Posting Permissions

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