wood burning stoves 2.0*
The moose likes Other Application Frameworks and the fly likes Spring MVC using domain entities as form command objects Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Other Application Frameworks
Bookmark "Spring MVC using domain entities as form command objects" Watch "Spring MVC using domain entities as form command objects" New topic
Author

Spring MVC using domain entities as form command objects

Martyn Clark
Ranch Hand

Joined: Apr 16, 2005
Posts: 108
Hi all,
I am new to spring mvc and I am currently stumbling how to bind the form fields to entities that have a OneToMany relationship.
All the fields in the form create an account whereby an Address entity is added into the Collection<Address> addresses. Am I confronting this from the wrong direction should I be binding to domain object?

Thank's for any guidence on this issue I seem to be having...


Martyn...<br /> <br />SCJP 1.4 SCWCD 1.4
Sergey Chunayev
Greenhorn

Joined: Jan 24, 2008
Posts: 6
Do you want to add just one address at a time, or you want to have the ability to add several addresses dynamically on the same form?
 
wood burning stoves
 
subject: Spring MVC using domain entities as form command objects
 
Similar Threads
form-backing object and command pattern
Submitting form data as JSON with JQuery
Changing Domain object's constraints on the fly.
Can't find the right framework. Creating a single page app, with dynamic forms
Spring MVC - A novice doubt