This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
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 OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA 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?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Spring MVC using domain entities as form command objects