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
19,438
Emily
Williams
722-555-2377
606-555-4578
19,439
Abner
Hall
228-555-8280
514-555-4458
19,440
Joshua
Hall
827-555-7605
345-555-5660
19,441
Christopher
Murray
554-555-5764
808-555-2678
19,442
Hailey
Donahue
572-555-5372
411-555-5426
19,443
Abby
Nelson
778-555-5418
468-555-4314
19,444
Sarah
Rose
607-555-2147
613-555-4557
19,445
Larry
Johnson
500-555-6515
438-555-6102