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
3,815,636
Samantha
Nelson
413-555-3141
683-555-4466
3,815,637
Abner
Ortiz
724-555-8708
675-555-3857
3,815,638
Emily
Gomez
547-555-2587
245-555-5481
3,815,639
Kathleen
Gomez
744-555-1420
638-555-7324
3,815,640
Keith
Johnson
216-555-3884
406-555-4385
3,815,641
Sarah
Gonzalez
373-555-8662
544-555-1277
3,815,642
Michael
Baker
624-555-7711
444-555-8268
3,815,643
Hailey
Clark
408-555-4262
866-555-1843