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
708,258
Samantha
Allen
585-555-8143
733-555-1580
708,259
Maria
Johnson
768-555-2167
228-555-7551
708,260
Emily
Johnson
253-555-1270
238-555-5270
708,261
Emily
Murray
536-555-1053
733-555-2477
708,262
Maria
Brown
280-555-5182
252-555-4524
708,263
Abby
Hall
545-555-4747
566-555-1767
708,264
Willie
Allen
736-555-8317
423-555-4650
708,265
Maria
Ortiz
240-555-5874
750-555-5885