-
May 20th, 2006, 04:40 AM
#1
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
rgds
Prabhakar
Last edited by NeosoftPrabhakar; May 23rd, 2006 at 11:30 PM.
-
May 23rd, 2006, 11:31 PM
#2
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).
detail like
<spring:bind path="invheader.invdetail.itemname">
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules