Jan 3rd, 2007, 04:08 PM
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.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.