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
5,997,570
Brianna
Donahue
580-555-4246
271-555-1158
5,997,571
Pamela
Williams
220-555-5827
656-555-7857
5,997,572
Jose
Cruz
361-555-4372
241-555-6231
5,997,573
Jack
Baker
706-555-4603
886-555-6485
5,997,574
Willie
Nelson
325-555-7325
771-555-7772
5,997,575
Larry
Moore
362-555-4081
887-555-3420
5,997,576
Abner
Ortiz
876-555-4347
801-555-4347
5,997,577
Maria
Hall
448-555-2710
438-555-1261