This is a rewrite of the AJAX data table example from Wicket. We demonstrate here how we can deviate from the default settings by using a BindingInterceptor in the page. Also we show how the order of the generated table columns and visibility of columns can be manipulated by the @ColumnOrder annotation. The removeFrom utility method is also demonstrated for how to remove elements in the parent model via adding a button to the table. The multiselection behavior is fully driven by the model class.

This is a demo of the DataTable (DataView wrapper). Provided features:

  • Easy ordering and selection of columns
  • Takes care of sorting headers automatically
  • Takes care of page navigator automatically
  • Takes care of adding class="odd" and class="even" to table rows
  • Adds a navigator message (see BindingInterceptor in page which enables it)
Contacts
Id First Name Last Name Home Phone Cell Phone Remove
9,766
Willie
Murray
388-555-5113
237-555-6275
9,767
Samuel
Ortiz
820-555-5328
225-555-5314
9,768
Pamela
Rose
563-555-5215
638-555-2351
9,769
Sarah
Gonzalez
475-555-3063
307-555-5685
9,770
Debra
Bailey
220-555-6616
577-555-1645
9,771
Matthew
Ortiz
773-555-6565
681-555-5066
9,772
Jack
Moore
311-555-1651
887-555-8013
9,773
Samantha
Nelson
574-555-8780
675-555-6114