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
7,999
Hailey
Williams
581-555-7538
723-555-2418
8,000
Samantha
Jones
742-555-1840
624-555-4320
8,001
Virginia
Baker
541-555-1257
777-555-2428
8,002
Debra
Jones
615-555-4121
781-555-2040
8,003
Timothy
Hall
512-555-2554
558-555-1145
8,004
Christopher
Williams
874-555-2781
215-555-1672
8,005
Samuel
Baker
234-555-2622
365-555-3555
8,006
Nicholas
Cruz
877-555-1677
806-555-6824