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
59,552
Virginia
Gomez
480-555-7425
401-555-8522
59,553
Timothy
Black
210-555-7153
210-555-5852
59,554
Abby
Williams
763-555-3103
807-555-2267
59,555
Pamela
Jones
680-555-3847
410-555-5603
59,556
Larry
Clark
424-555-6550
676-555-7851
59,557
Samuel
Donahue
685-555-1754
537-555-7537
59,558
Kathleen
Davis
332-555-4085
575-555-3450
59,559
Kathleen
Graham
374-555-4721
246-555-5556