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
12,711
Nicholas
Fisher
815-555-8073
424-555-6016
12,712
Abner
Williams
477-555-2807
247-555-3307
12,713
Samantha
Davis
435-555-4624
436-555-2576
12,714
Samantha
Lee
212-555-6304
648-555-6872
12,715
Samuel
Fisher
526-555-5062
668-555-1372
12,716
Samantha
Gonzalez
626-555-1585
233-555-4117
12,717
Maria
Rose
531-555-6265
672-555-6865
12,718
Debra
Graham
718-555-3688
407-555-4504