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
23,592
Keith
Ortiz
632-555-5363
767-555-2826
23,593
Abner
Williams
815-555-2887
232-555-7045
23,594
Michael
Murray
872-555-2002
877-555-6642
23,595
Pamela
Gomez
831-555-2782
725-555-2188
23,596
Michael
Black
576-555-5608
874-555-5003
23,597
Emily
Smiith
347-555-4314
354-555-8437
23,598
Linda
Baker
751-555-8428
225-555-8785
23,599
Keith
Black
281-555-7101
364-555-2743