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
1,477,756
Hailey
Bailey
303-555-2050
406-555-6347
1,477,757
Abby
Wilson
234-555-6166
632-555-8301
1,477,758
Pamela
Graham
578-555-4483
362-555-2812
1,477,759
Jack
Gomez
634-555-2258
506-555-6240
1,477,760
Brianna
Gomez
718-555-8487
230-555-6658
1,477,761
Willie
Cruz
525-555-7237
232-555-7700
1,477,762
Brianna
Moore
606-555-5652
488-555-4351
1,477,763
Hailey
Clark
680-555-7480
766-555-6350