Important Notice - Forums is archived
To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.
Using components in a table don't work with a container.
I've a table in which I want to show some boolean as checkbox or some other value as component (buttons, icons etc...)
In a first version I defined the property type as checkbox, I added a checkbox to my item and then added the item to the table : it worked.
Now I was forced to create a container in order to manage the pagination and then I defined the property type as checkbox, I added a checkbox to my item and then I return the item whithin a collection but now I see the toString of my checkbox (and of each object I put).
Also alignments are lost (they worked "before the container").
What's wrong ?
What did I forget ?
Tks
Tullio
I would suggest that instead of keeping components in your container, you should just keep the data there and use a ColumnGenerator for creating components that represent your data.
What about alignemt ?
should I use the ColumnGenerator ?
How?
Tks
Tullio
Sorry but I don't understand Your suggestion about ColumnGenerator.
In my table I've no addContainerProperty in my code and fields are "automatically generated from getIds() provided from the container (I think).
So how can I force the column to be generated from a ColumnGenerator ?
Tks
Tullio
you can add extra properties or override old ones with table.addGeneratedColumn(propertyId, ColumnGenerator)