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
10,518,921
Brianna
Lee
657-555-1645
654-555-2516
10,518,922
Christopher
Cruz
844-555-4806
473-555-2448
10,518,923
Debra
Nelson
833-555-6683
350-555-5722
10,518,924
Emily
Davis
360-555-2170
874-555-4880
10,518,925
Debra
Johnson
571-555-5768
336-555-2407
10,518,926
Brianna
Jones
672-555-2358
312-555-3228
10,518,927
Linda
Murray
753-555-7037
445-555-6112
10,518,928
Sarah
Cruz
381-555-3728
757-555-6123