Hi everybody,
I have a compoment in table by
tableData.addContainerProperty("Select", OptionGroup.class, null);
How can i get this component on each row from the table ?
Hi everybody,
I have a compoment in table by
tableData.addContainerProperty("Select", OptionGroup.class, null);
How can i get this component on each row from the table ?
You need to add a new instance on every row, since a single component can only be in one place at a time. The adding would happen for example like this:
for (Integer itemId : itemIds) {
table.addItem(new Object[] {<contents of previous columns>, new OptionGroup(), <contents of following columns>}, itemId)
}
Specifying a default value other than
null
would be a good place to start. From there, I would implement my own Container that generates the right ComboBox for each row.