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,461,372
Douglas
Ortiz
842-555-1460
610-555-8747
1,461,373
Samuel
Lee
816-555-5338
530-555-3214
1,461,374
Matthew
Fisher
202-555-6686
743-555-8433
1,461,375
Samantha
Smiith
638-555-1022
547-555-4075
1,461,376
Sarah
Gomez
435-555-4843
604-555-6451
1,461,377
Timothy
Fisher
652-555-3203
676-555-7514
1,461,378
Debra
Smiith
466-555-3185
704-555-3677
1,461,379
Abner
Cruz
417-555-3681
418-555-4503