}
protected ListWidget initList() throws Exception {
// Create the new list widget whose records are JavaBeans, instances of CompanyMO.
// CompanyMO has fields named id, name and address.
BeanListWidget temp = new BeanListWidget(CompanyMO.class);
// set the data provider for the list
temp.setListDataProvider(new TemplateCompanyListDataProvider());
// add the displayed columns to list.
// addBeanColumn(String id, String label, boolean isOrdered)
// note that # before the label means that label is treated as unlocalized and outputted as-is
temp.addBeanColumn("id", "#Id", false);
//addBeanColumn(String id, String label, boolean isOrdered, ColumnFilter filter, Control control)
temp.addBeanColumn("name", "#Name", true, new SimpleColumnFilter.Like(), new TextControl());
temp.addBeanColumn("address", "#Address", true, new SimpleColumnFilter.Like(), new TextControl());
return temp;
}