Announcement Announcement Module
No announcement yet.
binding multiple DTO Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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, 11:30 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, 11:37 PM.