Hi,
I have a Form with a custom layout. The idea of the form is to configure the rendering of a table.
I have a TableModel, something like
public class TableModel {
private String title;
private List<ColumnModel> columnModels;
}
where ColumnModel is
public class ColumnModel {
private String name;
private ColumnType type;
private Object defaultValue;
}
Attached a simple mockup of the form. What I want basically is to customize the data type of each column. So I have a root TableModel containing a title and a set of ColumnModel.
I have done a few forms already with a VO behind and we bind the property with the actual name of the “property” in the VO (in this case “title” to bind to the title property of TableModel).
But how can we bind easily a collection of elements (the column model instances)?
Any pointer to doc or sample would be appreciated.
Thanks,
S.