Mark227
(Mark Silverman)
1
I’m creating a table bound to a JPAContainer as follows:
dataset = JPAContainerFactory.make(Dataset.class, VdmdashUI.PERSISTENCE_UNIT);
dataset.addContainerFilter(filter);
Table dbTable = new Table(null, dataset);
Is there any way to render a column as a TextArea or other component?
Marko1
(Marko Grönroos)
2
When the Table is in editable mode, the editors for the column are generated with a TableFieldFactory that you can define for the table.
If not in editable mode, things get a bit more complicated. You could use a
column generator
or a
GeneratedPropertyContainer
to add a column with TextArea component type.
Mark227
(Mark Silverman)
3
Thanks Marko - I just make the table edittable but generated the fields read-only so the TableFieldFactory worked like a champ…