Announcement Announcement Module
Collapse
No announcement yet.
Validation on a detail table Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Validation on a detail table

    Hi all,

    I am trying to create a simple header-detail form that binds to a java bean with a List property. The detail list is displayed and edited in a JTable.

    I can handle all the binding and the validation on the header, and I can display and edit the detail list fine, but I was wondering if there is a standard way to do validation on the detail lines.

    eg.
    Customer
    - name String
    - address String
    - orders List<Order>

    Order
    - product id String
    - amount double

    Presumably you could define rules in your RulesSource for Customer objects and Order objects (eg. product id required, alphanumeric, etc). But how would you:
    a) validate the orders detail element in the header's FormModel,
    b) collect the messages for the detail elements,
    c) display validation errors on a JTable.

    regards,
    Scott
Working...
X