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
2,233
Jack
Smiith
857-555-6443
341-555-2547
2,234
Brianna
Clark
372-555-6661
785-555-5175
2,235
Keith
Nelson
221-555-4520
788-555-4027
2,236
Virginia
Bailey
744-555-8770
808-555-4648
2,237
Abby
Johnson
332-555-4403
586-555-5847
2,238
Matthew
Cruz
248-555-6805
861-555-1167
2,239
Timothy
Williams
305-555-3506
723-555-6418
2,240
Jack
Murray
824-555-8263
207-555-4663