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
1,464,472
Hailey
Johnson
782-555-3674
327-555-2428
1,464,473
Sandra
Gonzalez
506-555-1873
816-555-4310
1,464,474
Douglas
Davis
632-555-1727
841-555-2127
1,464,475
Christopher
Davis
525-555-5520
705-555-1322
1,464,476
Linda
Donahue
530-555-1883
230-555-1077
1,464,477
Kathleen
Fisher
458-555-4046
668-555-7020
1,464,478
Abner
Gonzalez
716-555-5008
730-555-2133
1,464,479
Kathleen
Wilson
655-555-8317
847-555-1458