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
10,513,961
Willie
Hall
281-555-4172
642-555-7534
10,513,962
Linda
Moore
521-555-4475
525-555-3088
10,513,963
Keith
Graham
851-555-7350
706-555-4657
10,513,964
Abner
Nelson
262-555-2507
316-555-8240
10,513,965
Michael
Murray
248-555-3240
718-555-6414
10,513,966
Maria
Graham
265-555-7261
506-555-6612
10,513,967
Hailey
Rose
218-555-6573
381-555-1588
10,513,968
Joshua
Graham
515-555-3150
816-555-1748