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
3,044,945
Brianna
Nelson
334-555-3334
352-555-1400
3,044,946
Maria
Smiith
217-555-4181
582-555-3157
3,044,947
Nicholas
Nelson
243-555-3537
782-555-2586
3,044,948
Linda
Clark
202-555-6772
856-555-7885
3,044,949
Pamela
Johnson
673-555-3273
872-555-2741
3,044,950
Samantha
Brown
751-555-3025
481-555-5855
3,044,951
Kathleen
Bailey
431-555-2830
687-555-5863
3,044,952
Abner
Nelson
818-555-2384
347-555-4663