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
44,889
Joshua
Donahue
762-555-5158
211-555-6368
44,890
Jack
Bailey
230-555-1835
808-555-8356
44,891
Abby
Allen
811-555-6175
338-555-5408
44,892
Sarah
Murray
463-555-3046
563-555-1111
44,893
Debra
Cruz
856-555-5637
386-555-5223
44,894
Jose
Fisher
783-555-1766
378-555-6178
44,895
Timothy
Baker
317-555-3081
505-555-3635
44,896
Maria
Nelson
606-555-2487
483-555-3311