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
167,556
Hailey
Smiith
447-555-2041
370-555-6118
167,557
Abby
Baker
504-555-8460
514-555-5437
167,558
Jose
Murray
468-555-3225
750-555-1875
167,559
Emily
Black
254-555-2758
325-555-7022
167,560
Gerald
Johnson
732-555-6312
620-555-7844
167,561
Samantha
Moore
481-555-6257
775-555-5064
167,562
Gerald
Black
573-555-2067
571-555-6313
167,563
Jacob
Clark
452-555-2155
388-555-5514