Binding A List<String> to a Table

Hello,

I would like to bind this list to a table with one column using a BeanFieldGroup.

I have a class as:
CUser{
private final List Permissions = Arrays.asList(“X”, “Y”, “Z”);
}

Is it possible to bind directly with BeanFieldGroup.bind call without using a container.

Such as:
MyBeanFieldGroup.bind(MyTable, “Permissions”);

Thanks

I hope you are not confusing between the data in the table and it’s value. Table’s value, which you can bind, is its
selection
, not the (container) data displayed in the table. The value is an item ID Object in single-select mode and a Set in multi-select mode.

If you want to directly bind Table’s container data to a bean property, you’d perhaps need to extend it and redefine what its value means.