Binding Tables in forms

HI All,

I want to use a Table in a Form, and my situation pretty much requires that this be bound to data using the standard way that a Form does - by doing

f.setPropertyDataSource(property)

where the property has been extracted from the Item being bound. This doesn’t work fro Tables, as they inherit from AbstractSelect, and don’t pay any attention to the fields that the method sets - so the table always ends up as showing empty.

My proposed solution is to write a wrapper class that wraps a Table (in fact, it could wrap AbstractSelect for more generality), and implements setPropertyDataSource() to convert a Property with a collection value into a Container, and call setContainerDataSource on the wrapped item.

This seems like it would work, but I’m wondering if there are any better solutions out there, or if there could be a problem with this approach?

Thanks

-pb