• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Spring MVC using domain entities as form command objects

 
Martyn Clark
Ranch Hand
Posts: 108
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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...
 
Sergey Chunayev
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic