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
3,380
Abner
Graham
860-555-1605
577-555-1368
3,381
Samantha
Moore
507-555-6566
322-555-5561
3,382
Linda
Gomez
685-555-7186
288-555-8763
3,383
Maria
Jones
441-555-8201
223-555-3861
3,384
Sandra
Graham
763-555-4737
647-555-2373
3,385
Brianna
Brown
460-555-2136
633-555-8254
3,386
Douglas
Lee
450-555-5171
305-555-1884
3,387
Sandra
Moore
610-555-8252
587-555-2401