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
707,421
Kathleen
Gomez
701-555-7470
252-555-7237
707,422
Brianna
Donahue
716-555-8255
644-555-7445
707,423
Linda
Hall
815-555-6112
460-555-2566
707,424
Linda
Fisher
888-555-3683
545-555-1500
707,425
Debra
Lee
288-555-3306
232-555-1127
707,426
Sarah
Clark
768-555-8688
885-555-8034
707,427
Matthew
Williams
488-555-8654
417-555-1468
707,428
Sandra
Wilson
618-555-5577
551-555-6732