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
766,910
Sarah
Bailey
671-555-4012
307-555-8628
766,911
Hailey
Fisher
486-555-2176
255-555-7462
766,912
Debra
Gonzalez
264-555-5545
814-555-4354
766,913
Michael
Bailey
303-555-7825
207-555-4144
766,914
Sarah
Gonzalez
803-555-4242
683-555-3277
766,915
Jacob
Fisher
384-555-4802
675-555-5276
766,916
Sarah
Jones
600-555-7763
335-555-2070
766,917
Maria
Rose
243-555-2058
502-555-6486