May 20th, 2006, 04:40 AM
binding multiple DTO
I am newbie to spring. How to do a master-detail form using web mvc? For example an invoice containing
Invoice header(customer code, name etc) and invoice details containing line items (item 1, item 2, item 3 etc)
Do we use simpleformcontroller ? How to do the data binding of Header and Detail to two different table objects using intermediary DTO objects for each table(header and detail). Currently I am able to bind the data with the
header without any problem, and validator, saving all works. But how to bind the detail (line items) to another DTO? Any example available?
Thank you in advance
Last edited by NeosoftPrabhakar; May 23rd, 2006 at 11:30 PM.
May 23rd, 2006, 11:31 PM
I tried like master DTO having detail DTO object as a one of the member, and
Header part is Binding, but for the Detail it is not binding(nested binding).
this is not calling the set method of itemname in the invdetail.
Is necessary to implement the property Editor. Can you give the clear picture about how to implement property Editor.
Last edited by NeosoftPrabhakar; May 23rd, 2006 at 11:37 PM.