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
709,312
Sarah
Wilson
603-555-4436
855-555-4375
709,313
Keith
Fisher
750-555-3400
641-555-5841
709,314
Abner
Smiith
515-555-7305
852-555-5870
709,315
Maria
Davis
321-555-2872
637-555-4425
709,316
Joshua
Lee
513-555-7048
650-555-6101
709,317
Gerald
Donahue
304-555-6546
242-555-6105
709,318
Michael
Allen
660-555-2151
533-555-2027
709,319
Matthew
Gonzalez
486-555-3454
757-555-2165