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
5,565,586
Sandra
Gonzalez
314-555-5744
623-555-3081
5,565,587
Gerald
Donahue
823-555-2550
615-555-8583
5,565,588
Hailey
Wilson
648-555-8500
241-555-7186
5,565,589
Debra
Lee
677-555-1885
718-555-5801
5,565,590
Matthew
Moore
770-555-8236
614-555-3270
5,565,591
Nicholas
Moore
240-555-6430
278-555-2310
5,565,592
Michael
Gonzalez
481-555-7268
884-555-7111
5,565,593
Nicholas
Rose
525-555-6086
873-555-1742