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
5,997,632
Pamela
Ortiz
426-555-3347
214-555-4888
5,997,633
Pamela
Williams
401-555-6032
670-555-6568
5,997,634
Maria
Johnson
210-555-2510
344-555-8418
5,997,635
Jack
Williams
242-555-8607
316-555-5715
5,997,636
Virginia
Williams
884-555-5024
424-555-3525
5,997,637
Hailey
Donahue
217-555-8532
303-555-4460
5,997,638
Joshua
Jones
287-555-3270
426-555-4405
5,997,639
Maria
Fisher
545-555-4510
764-555-5686