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,515,521
Sarah
Baker
572-555-3333
764-555-1180
5,515,522
Hailey
Baker
281-555-2127
821-555-7416
5,515,523
Abby
Hall
652-555-1465
334-555-5022
5,515,524
Gerald
Hall
553-555-2118
465-555-2507
5,515,525
Nicholas
Hall
776-555-1371
507-555-3442
5,515,526
Samantha
Allen
368-555-5653
882-555-1530
5,515,527
Nicholas
Jones
882-555-7705
682-555-6577
5,515,528
Samantha
Jones
641-555-1722
803-555-5568