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
53,259
Abby
Williams
841-555-5682
786-555-1824
53,260
Matthew
Jones
337-555-3550
873-555-3067
53,261
Maria
Nelson
242-555-1171
202-555-4425
53,262
Samantha
Rose
384-555-8450
420-555-1404
53,263
Gerald
Smiith
347-555-6687
242-555-4276
53,264
Gerald
Jones
814-555-5156
201-555-4851
53,265
Douglas
Cruz
634-555-1380
818-555-4435
53,266
Nicholas
Hall
702-555-2274
358-555-2856