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
709,405
Timothy
Clark
331-555-6336
651-555-6574
709,406
Timothy
Baker
383-555-4300
844-555-7342
709,407
Jacob
Black
501-555-2088
501-555-2243
709,408
Samuel
Moore
553-555-8760
675-555-1266
709,409
Douglas
Gomez
551-555-1130
512-555-3433
709,410
Jose
Williams
555-555-8754
251-555-2736
709,411
Keith
Smiith
821-555-5353
706-555-1158
709,412
Sarah
Davis
743-555-8153
827-555-7658