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,918,455
Nicholas
Davis
642-555-6411
728-555-4241
7,918,456
Larry
Lee
312-555-3726
671-555-5804
7,918,457
Nicholas
Clark
338-555-8133
780-555-5251
7,918,458
Douglas
Brown
224-555-3880
721-555-7167
7,918,459
Debra
Bailey
773-555-5578
440-555-8830
7,918,460
Hailey
Cruz
755-555-6083
428-555-5842
7,918,461
Linda
Ortiz
473-555-7888
610-555-1114
7,918,462
Kathleen
Gonzalez
202-555-5215
730-555-3486