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
3,824,564
Brianna
Donahue
414-555-1858
443-555-4252
3,824,565
Jacob
Williams
257-555-2762
257-555-2550
3,824,566
Sarah
Donahue
847-555-6038
312-555-7807
3,824,567
Keith
Wilson
212-555-2754
302-555-7348
3,824,568
Nicholas
Hall
823-555-6737
473-555-8111
3,824,569
Jack
Donahue
422-555-1280
708-555-5502
3,824,570
Jack
Hall
561-555-3251
855-555-1158
3,824,571
Maria
Jones
806-555-3130
280-555-3441