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,455,048
Keith
Graham
638-555-8884
353-555-2820
1,455,049
Jack
Moore
764-555-6550
688-555-1661
1,455,050
Emily
Ortiz
227-555-5853
545-555-7011
1,455,051
Linda
Davis
356-555-1460
621-555-7642
1,455,052
Debra
Moore
803-555-3700
303-555-2562
1,455,053
Hailey
Smiith
408-555-8375
464-555-5174
1,455,054
Hailey
Wilson
221-555-1380
816-555-2845
1,455,055
Jose
Allen
738-555-3151
858-555-7543