Hello,
So I have this Bean:
public class Person{
private String name;
private List<String> achievements;
}
...getters/setters...
And I want to bind it to a table, but only the List, in such a way that each row represent one element of that list.
Right now I have this:
[code]
//a generated bean
Table table = new Table();
BeanItemContainer container = new BeanItemContainer<>(Person.class);
container.addBean(person);
table.setContainerDataSource(container);
table.setVisibleColumns(“achievements”);
[/code]And I get this (rightfuly):
[url=http://imgur.com/a/9lwdt]
http://imgur.com/a/9lwdt
What
I need is one entry from the list on each row.
Also, there’ll always be only one item in the container (so maybe the wrong container ?).
Sorry if it seems stupid, but this will help me understand data binding in general.
[/url]
Any ideas ?