JPAContainer, Table and CustomComponent

Hi,

I am very new to Vaadin and just exploring it a bit. From what I have seen so far, it is really great!!

I am now challenging something I don’t quite know how to solve and couldn’t find the answer in the (really great!!) Book of Vaadin or the Forums yet… Maybe one of you can help?

I have some data in a database and I am using JPAContainer (with underlying EclipseLink).
Displaying the data in a table using table.setContainerDataSource() works just fine.

However, I have some Date and Boolean fields in the database, which I would like to display differently in the table (ie. reformat the date or display an image for the Booleans value).

I can see, that you can add Components into a Table - but how do you do this if you use a ContainerDataSource?
I have tried removing the relevant ContainerProperty and then again adding it with a different type, but that obviously didn’t work…

Any ideas?

Thanks
Philipp

OK, just to let you know:
Figured it out - too easy to be true…

Use GeneratedColumns as shown in
http://demo.vaadin.com/sampler/#TableCellStyling

Philipp