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
100,844
Jack
Allen
663-555-1110
814-555-7827
100,845
Larry
Clark
864-555-3268
737-555-5760
100,846
Sandra
Williams
661-555-4621
588-555-8307
100,847
Maria
Bailey
711-555-2601
358-555-5338
100,848
Nicholas
Smiith
764-555-5542
204-555-6046
100,849
Linda
Donahue
515-555-4022
828-555-3378
100,850
Samantha
Johnson
244-555-2040
860-555-2326
100,851
Samantha
Hall
307-555-4748
526-555-4205