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
750,000
Michael
Black
681-555-4157
370-555-7354
750,001
Maria
Davis
882-555-2170
621-555-8887
750,002
Debra
Davis
770-555-1805
568-555-2817
750,003
Sandra
Smiith
736-555-4520
543-555-5404
750,004
Larry
Brown
348-555-6366
647-555-2278
750,005
Michael
Brown
342-555-4213
760-555-5787
750,006
Sandra
Lee
338-555-5523
833-555-1403
750,007
Samuel
Murray
407-555-7156
817-555-5661