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
30,381
Matthew
Davis
678-555-4164
443-555-6621
30,382
Sandra
Donahue
306-555-8283
622-555-2817
30,383
Larry
Clark
201-555-4476
884-555-4685
30,384
Jacob
Johnson
370-555-6016
412-555-5676
30,385
Debra
Lee
765-555-4431
437-555-6128
30,386
Abner
Rose
436-555-2702
775-555-4154
30,387
Samantha
Gonzalez
432-555-8288
327-555-1417
30,388
Jack
Wilson
715-555-2420
734-555-5506