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
757,331
Keith
Gonzalez
530-555-6155
333-555-7647
757,332
Pamela
Lee
580-555-2238
502-555-6066
757,333
Christopher
Rose
481-555-4367
521-555-5282
757,334
Christopher
Nelson
270-555-5673
862-555-5411
757,335
Sandra
Graham
304-555-4007
713-555-7421
757,336
Virginia
Black
840-555-2333
833-555-2660
757,337
Timothy
Murray
577-555-4870
608-555-1384
757,338
Linda
Bailey
886-555-8632
564-555-1880