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
590
Sarah
Cruz
221-555-5012
477-555-2211
591
Brianna
Lee
586-555-1884
467-555-2707
592
Keith
Smiith
436-555-2041
770-555-8737
593
Pamela
Allen
336-555-8258
654-555-2187
594
Timothy
Brown
481-555-3668
383-555-5560
595
Debra
Wilson
336-555-3165
850-555-8025
596
Pamela
Gomez
266-555-6410
566-555-7700
597
Abby
Graham
534-555-8010
715-555-4871