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
4,868
Keith
Donahue
563-555-8853
383-555-8422
4,869
Brianna
Murray
877-555-1617
634-555-1404
4,870
Timothy
Fisher
211-555-4587
864-555-3822
4,871
Matthew
Fisher
777-555-4858
654-555-4511
4,872
Debra
Clark
455-555-1048
356-555-1844
4,873
Pamela
Black
834-555-7562
455-555-2338
4,874
Larry
Donahue
468-555-3121
307-555-5354
4,875
Debra
Gomez
410-555-6838
463-555-2231