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
53,445
Jose
Graham
771-555-1356
456-555-6312
53,446
Keith
Bailey
774-555-7320
755-555-8026
53,447
Willie
Lee
223-555-4775
833-555-1727
53,448
Sarah
Allen
482-555-2412
275-555-8500
53,449
Keith
Black
546-555-4380
417-555-7780
53,450
Abner
Gomez
288-555-8442
553-555-3615
53,451
Hailey
Hall
536-555-1741
324-555-7387
53,452
Abby
Graham
544-555-6347
644-555-5740