Results 1 to 2 of 2

Thread: populating BindingActionForm

  1. #1
    Join Date
    Dec 2004
    Location
    New York
    Posts
    17

    Default populating BindingActionForm

    hi,

    i've been playing around with adding Web Flow to an existing struts app. i have a form object thats coming out of the database.

    I need some way to bind the form object back to the BindingActionForm, so I can use the struts taglibs to prepopulate the html form.

    Looking through the code, I see that FlowAction only binds the errors back on to the BindingActionForm, but not the form object.

    Is there a recommended way to handle this?

    I was thinking something along the lines of a FlowExecutionListener that could on 'requestProcessed' get the StrutsEvent and pull out the BindingActionForm and do a BeanUtils.copyProperties of form object to the action form.

    The only thing is that this should probably only happen on a new form or a successul request, because on an error you would want the ActionForm to contain the original input from the user.

    Any thoughts?

  2. #2
    Join Date
    Dec 2004
    Location
    New York
    Posts
    17

    Default

    nevermind...

    i had a configuration issue and i didn't see what BindingAwarePropertyUtils was doing.

    very clever stuff :-)

    thanks.

Similar Threads

  1. Replies: 1
    Last Post: Sep 19th, 2005, 07:18 AM
  2. Replies: 2
    Last Post: Jun 2nd, 2005, 07:22 AM
  3. populating array list in singleton
    By shail in forum Container
    Replies: 2
    Last Post: Mar 10th, 2005, 03:37 PM
  4. Populating drop-down lists
    By trondgzi in forum Web
    Replies: 5
    Last Post: Feb 3rd, 2005, 05:28 AM
  5. Replies: 1
    Last Post: Sep 6th, 2004, 10:14 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
  •