Announcement Announcement Module
Collapse
No announcement yet.
Multiple Forms On The Same Page Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    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).

    Comment

    Working...
    X