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
719,294
Joshua
Clark
727-555-1572
863-555-2523
719,295
Michael
Hall
364-555-6101
640-555-6673
719,296
Hailey
Gonzalez
744-555-3730
452-555-7410
719,297
Michael
Black
460-555-2810
245-555-1084
719,298
Matthew
Graham
730-555-1525
237-555-3076
719,299
Hailey
Clark
330-555-3710
406-555-2248
719,300
Keith
Moore
752-555-1628
353-555-8464
719,301
Maria
Nelson
558-555-2271
655-555-4655