// build the filter form
filterForm = new Form("filterForm");
add(filterForm);
filterForm.add(filter = new TextField("filter", new Model()));
filter.add(new SimpleAttributeModifier("title", String.valueOf(new ResourceModel(
"GeoServerTablePanel.search", "Search").getObject())));
filterForm.add(hiddenSubmit = hiddenSubmit());
filterForm.setDefaultButton(hiddenSubmit);
// setup the table
listContainer.setOutputMarkupId(true);
add(listContainer);
dataView = new DataView("items", dataProvider) {
@Override
protected void populateItem(Item item) {
final IModel itemModel = item.getModel();
// odd/even style
item.add(new SimpleAttributeModifier("class", item.getIndex() % 2 == 0 ? "even"
: "odd"));
// add row selector (visible only if selection is active)
WebMarkupContainer cnt = new WebMarkupContainer("selectItemContainer");
cnt.add(selectOneCheckbox(item));