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
766,786
Douglas
Johnson
460-555-1883
260-555-5575
766,787
Christopher
Jones
516-555-4084
733-555-2465
766,788
Samantha
Williams
586-555-5757
444-555-6185
766,789
Timothy
Graham
348-555-2406
342-555-3208
766,790
Abby
Nelson
843-555-6510
340-555-1074
766,791
Willie
Hall
814-555-3563
778-555-3750
766,792
Sarah
Black
265-555-2101
487-555-5755
766,793
Jack
Clark
316-555-7032
787-555-1822