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
6,133,010
Brianna
Moore
378-555-7641
318-555-4856
6,133,011
Abby
Baker
752-555-6231
821-555-6031
6,133,012
Jacob
Black
340-555-3167
317-555-2511
6,133,013
Abner
Murray
815-555-7811
488-555-6860
6,133,014
Willie
Allen
502-555-2606
406-555-5875
6,133,015
Christopher
Smiith
256-555-2657
784-555-3614
6,133,016
Matthew
Murray
372-555-1405
348-555-8241
6,133,017
Matthew
Graham
613-555-1762
855-555-2653