Add new rows to a table

I have a set of nested pojos inside a parent pojo. The parent pojo is bound to a form where the nested pojos are shown in a table created by a custom field factory.

If I set the table editable, I can change the properties of the nested pojos and the changes are committed to the data store (I use Hibernate in this case) when the form is commited.

Now, I want to add new instances of the nested pojo class to the parent in the same manner, i.e. add new items/rows to the table.

What is the best way to accomplish this?

Regards,
Thobias

The normal way to add a new row to a Table is to use
addItem(Object)
or
addItem(Object[], Object)

. Alternatively, calling
Container.addItem(Object)
on the Table’s datasource should work, too.