Results 1 to 2 of 2

Thread: Multiple Forms On The Same Page

  1. #1
    Join Date
    Nov 2005
    Posts
    17

    Default Multiple Forms On The Same Page

    Hi All,

    I was wondering if it was possible to have multiple forms on the same page and if so, how to accomplish this. In my case the two forms are unrelated and have different command objects and controllers. For example, a home page that has a login form (using acegi) and a registration form (using a User form object and a SimpleFormController) .

    Any help would be much appreciated,
    P

  2. #2
    Join Date
    Aug 2004
    Location
    Hawaii, US
    Posts
    225

    Default

    This has been mentioned before, maybe this will help:

    http://forum.springframework.org/arc...p/t-10379.html

    The trick is to get either an instance of Errors wrapping for each command bean that is backing each form, or the command bean itself into the Model (or request). The <spring:bind> tags require either one to exist to work (the tags prefer the Errors instance, but the plain command will do).

Posting Permissions

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