This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Spring MVC using domain entities as form command objects  RSS feed

 
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
Boost this thread!