aspose file tools*
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
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