sorting link now works with header. but sorting needs to be send on to db

This commit is contained in:
fred-fri 2012-05-03 17:58:38 +09:00
parent cf49243bd8
commit 459775991b

@ -60,13 +60,13 @@ public class CheckListTemplateDataPanel extends Panel {
add(numberDropDown); add(numberDropDown);
IColumn[] columns = new IColumn[2]; IColumn[] columns = new IColumn[2];
columns[0] = new PropertyColumn<CheckListTemplate>(Model.of("Name"), "name"); columns[0] = new PropertyColumn<CheckListTemplate>(Model.of("Name"), "name", "name");
columns[1] = new PropertyColumn<CheckListTemplate>(Model.of("Creator"), "creator"); columns[1] = new PropertyColumn<CheckListTemplate>(Model.of("Creator"), "creator");
table = new DataTable<CheckListTemplate>("datatable", columns, checklistTemplateProvider = new ChecklistTemplateProvider(), 10); table = new DataTable<CheckListTemplate>("datatable", columns, checklistTemplateProvider = new ChecklistTemplateProvider(), 10);
table.setOutputMarkupId(true); table.setOutputMarkupId(true);
table.addBottomToolbar(navigationToolbar = new NavigationToolbar(table)); table.addBottomToolbar(navigationToolbar = new NavigationToolbar(table));
table.addTopToolbar(new HeadersToolbar(table, null)); table.addTopToolbar(new HeadersToolbar(table, checklistTemplateProvider));
add(table); add(table);
} }