Results 1 to 3 of 3

Thread: Newbie: Multiple Command Objects?

  1. #1
    Join Date
    Oct 2004
    Posts
    1

    Default Newbie: Multiple Command Objects?

    Hello,

    I'm just starting out with Spring, playing around with a couple simple forms and some hibernate-based business objects. I'd like to have a single form that's composed of properities from multiple business objects, and then have the form values automatically bound to the respective business objects (I guess this would be multiple command objects?). Does Spring support something like this? I though perhaps the MultiActionController might address the issue, but it appears to solve a different issue.

    Thanks,

    Mike

  2. #2
    Join Date
    Aug 2004
    Location
    Carlisle, UK
    Posts
    184

    Default

    As far as I know there is no support for multiple command objects.
    However there is nothing to stop you making a command object that has as properties a number of business objects. Spring binding does support properties of properties.
    It sounds like this would give you what you are looking for.
    Chris Harris
    Carlisle, UK

  3. #3
    Join Date
    Jun 2012
    Posts
    6

    Default Multiple Command Objects?

    Hi ,

    Is there any plan to add support for multiple form object in future ? I think , below is valid scenario when we will need more then one command object .

    I came across one scenario . I've session scoped bean and also request scoped bean . I've used request scoped bean as command object but unable to get property set in session scoped . Please suggest how we can use session scoped bean's property here ?

Similar Threads

  1. Replies: 9
    Last Post: Jul 20th, 2006, 04:20 PM
  2. Replies: 1
    Last Post: Mar 9th, 2005, 03:52 PM
  3. Replies: 1
    Last Post: Feb 25th, 2005, 07:12 AM
  4. Multiple Pages
    By afida in forum Swing
    Replies: 12
    Last Post: Feb 16th, 2005, 08:42 AM
  5. Replies: 3
    Last Post: Dec 22nd, 2004, 07:31 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
  •