My solution is :

protected Map referenceData(HttpServletRequest request) {
       Map<String,Object> data = new HashMap<String,Object>();
       data.put("object1", new Object1());
       data.put("object2", new Object2());
       return data;
   }


Michael Horwitz wrote:
The simplest way is to override the referenceData() method on the controller - this will allow you to pass in other objects as parameters to the form page. One thing to note though - if you are using Spring's binding capabilities, it will only bind the elements on the form onto a single backing object. If you want to do anything more complicated you will need to create your own custom binding/controller. Mike.

On 1/27/08, *Leo Barrientos C.* <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> wrote:

    Hello, how can i put multiple objects to create a form in Spring MVC?

    formBackingObject just put 1 object, i need more (it's a complex form)

    My scenario is: I need to select the Users to work in a Document,
    I need
    to put the users in a list.

    Thanks in advance..


    ---------------------------------------------------------------------
    To unsubscribe, e-mail: [EMAIL PROTECTED]
    <mailto:[EMAIL PROTECTED]>
    For additional commands, e-mail: [EMAIL PROTECTED]
    <mailto:[EMAIL PROTECTED]>




--
Leo Barrientos C.
Responsable de operaciones - OpenSistemas Madrid.
www.opensistemas.com
Madrid: 902 10 73 96
Móvil: 662319448
España.



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to