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
3,421,905
Sarah
Hall
623-555-1106
301-555-1714
3,421,906
Kathleen
Williams
777-555-2243
546-555-1362
3,421,907
Pamela
Cruz
363-555-8238
338-555-1022
3,421,908
Jacob
Baker
367-555-3270
468-555-3662
3,421,909
Nicholas
Ortiz
526-555-3780
876-555-5866
3,421,910
Debra
Graham
768-555-2767
740-555-2737
3,421,911
Debra
Ortiz
367-555-6666
787-555-1184
3,421,912
Sandra
Jones
247-555-4660
715-555-7405