Announcement Announcement Module
Collapse
No announcement yet.
binding multiple DTO Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • 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
    rgds
    Prabhakar
    Last edited by NeosoftPrabhakar; May 24th, 2006, 12:30 AM.

  • #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 24th, 2006, 12:37 AM.

    Comment

    Working...
    X