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
55,274
Pamela
Graham
250-555-3247
423-555-4628
55,275
Debra
Hall
470-555-5160
365-555-7720
55,276
Sarah
Black
663-555-3172
246-555-2366
55,277
Joshua
Davis
283-555-1811
456-555-2603
55,278
Kathleen
Gonzalez
460-555-2610
207-555-1777
55,279
Sandra
Jones
316-555-8054
378-555-2621
55,280
Abby
Black
216-555-7811
457-555-7274
55,281
Nicholas
Jones
388-555-2806
735-555-5362