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
718,674
Virginia
Murray
442-555-1168
453-555-4732
718,675
Joshua
Hall
846-555-3710
245-555-3336
718,676
Sarah
Lee
880-555-7351
485-555-8042
718,677
Samantha
Murray
400-555-7877
738-555-1221
718,678
Nicholas
Rose
525-555-3214
634-555-8423
718,679
Willie
Nelson
532-555-8684
371-555-3813
718,680
Debra
Moore
625-555-4010
871-555-1560
718,681
Joshua
Fisher
266-555-7527
258-555-1052