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
9,921
Michael
Donahue
425-555-5380
441-555-6012
9,922
Pamela
Smiith
460-555-7017
754-555-3635
9,923
Pamela
Rose
618-555-4376
623-555-4551
9,924
Jose
Clark
657-555-8652
265-555-3223
9,925
Michael
Wilson
641-555-2448
418-555-8416
9,926
Samuel
Lee
542-555-2642
687-555-5446
9,927
Samuel
Murray
751-555-4334
420-555-6546
9,928
Linda
Gomez
266-555-1828
658-555-6128