Thursday, July 7, 2011

2Paths » Blog Archive » one-to-many relationships in Grails forms

2Paths » Blog Archive » one-to-many relationships in Grails forms

Here’s a scenario we see fairly often in our Grails applications.

  • Parent object has a collection of Child objects
  • We want the Parent’s create and edit GSPs to allow us to add/remove/update associated Child objects
  • The controller should correctly persist changes to the collection of Child objects, including maintaining Child object ids so any other objects referencing them don’t get screwed up

No comments:

Post a Comment