Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
-
Table/Column control
Description
Often a domain object is unnecessary and java.util.Map is a generalized way to describe Table columns and rows.
So a List of java.util.Map objects is a convenient generalized model resulting from a List Dao.getAll() type of methods.
Currently one needs code like the one below for each Colum object of a Table control to us a List of Map objects.
col = new Column("NAME");
col.setHeaderTitle("name");
table.addColumn(col);
col.setDecorator(new Decorator() {
public String render(Object row, Context context)
});
Request. Provide support for a List of java.util.Map objects as a data source for the Table control.