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
134,416
Maria
Fisher
374-555-4763
804-555-6482
134,417
Jacob
Black
440-555-2110
281-555-7408
134,418
Gerald
Lee
644-555-1176
706-555-4486
134,419
Joshua
Gonzalez
587-555-3068
713-555-8733
134,420
Sarah
Johnson
764-555-2287
256-555-8214
134,421
Jose
Davis
463-555-1433
643-555-8683
134,422
Pamela
Hall
715-555-1445
368-555-1868
134,423
Willie
Bailey
516-555-1036
665-555-7733