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
63,365
Willie
Hall
455-555-5516
350-555-6157
63,366
Timothy
Black
713-555-5524
806-555-1113
63,367
Abby
Murray
524-555-8084
346-555-2361
63,368
Jacob
Davis
855-555-3012
868-555-7784
63,369
Jacob
Brown
438-555-1060
344-555-1246
63,370
Matthew
Cruz
402-555-3401
757-555-3770
63,371
Kathleen
Moore
750-555-7177
641-555-3284
63,372
Virginia
Bailey
845-555-5614
652-555-5452