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
655,589
Keith
Davis
856-555-3784
825-555-5706
655,590
Timothy
Murray
383-555-7846
720-555-6338
655,591
Kathleen
Davis
247-555-8424
405-555-2736
655,592
Jose
Jones
570-555-4343
711-555-1385
655,593
Douglas
Fisher
614-555-5167
270-555-8654
655,594
Jack
Nelson
547-555-4445
442-555-5083
655,595
Abby
Wilson
544-555-7045
517-555-1886
655,596
Abby
Jones
735-555-4112
440-555-1862