A convenience implementation of column that adds a Ujo Property to the cell whose model is determined by
the provided wicket property expression (same as used by PropertyModel) that is evaluated
against the current row's model object
Example:
public class DataTablePage2 extends WebPage {
public DataTablePage2() {
final EmployeeProvider userProvider = new EmployeeProvider();
final List<IColumn> columns = new ArrayList<IColumn>();
columns.add(new KeyColumn(Employee.ID));
columns.add(new KeyColumn(Employee.FIRSTNAME));
columns.add(new KeyColumn(Employee.LASTNAME));
columns.add(new KeyColumn(Employee.EMAIL));
columns.add(new KeyColumn(Employee.STUDENT));
add(new DefaultDataTable("datatable", columns, userProvider, 20));
}
}
The above will attach a label to the cell with a property model for the expression
"name.first"