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,021,668
Abner
Donahue
366-555-1733
584-555-8568
1,021,669
Matthew
Donahue
878-555-1047
623-555-2188
1,021,670
Timothy
Bailey
513-555-6803
873-555-2532
1,021,671
Samantha
Smiith
827-555-4473
368-555-6154
1,021,672
Samantha
Moore
728-555-3172
608-555-7777
1,021,673
Christopher
Williams
451-555-4285
418-555-1644
1,021,674
Debra
Rose
260-555-2688
582-555-6608
1,021,675
Jack
Allen
305-555-8572
747-555-1475