Results 1 to 1 of 1

Thread: nested collections + domain objects + inheritance

  1. #1
    Join Date
    Nov 2006
    Location
    Boston, US
    Posts
    167

    Default nested collections + domain objects + inheritance

    [Deleting the original post as it was incorrect]

    Have an interesting discovery that might be useful to a lot of newbies.

    If you have a nested collections object in your domain object and you have a page flow in your use case where you would like to capture
    the properties and its respective associations (in one or multiple pages) you could leverage Spring's <form:form> tag like this

    <form:input path="study[0].site.address.city" />

    However a caveat is that you should initialise your collections (nested), the best way to do this is in formBackingObject.

    I find this feature incredibly powerful and useful as it eliminates the use of separate command objects and data binding happens automatically with Springs DataBinder (inc beans with inheritance)
    Last edited by infinity2heaven; Jan 4th, 2007 at 09:52 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •