Announcement Announcement Module
Collapse
No announcement yet.
How to track dirtyness of beans in a table Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to track dirtyness of beans in a table

    I use a BeanTableModel to wrap a collection of domain objects which are displayed in a JTable created with TableUtils.createStandardSortableTable().

    The table allows editing of values with custom cell editors.

    Upon commit, I would like to identify the rows, which have been edited to store them selectively.

    Is there an easy/preferred way of doing this?


    Many thanks

    Kambiz

  • #2
    Not without subclassing BeanTableModel and tracking when a value is set in the model.

    Larry.

    Comment


    • #3
      Thank you Larry!

      I overlooked setValueAtInternal. By overriding this method, it is easily possible to do what I wanted to.

      Comment

      Working...
      X