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,793,781
Virginia
Black
760-555-2651
661-555-1276
3,793,782
Abner
Black
711-555-5865
312-555-3423
3,793,783
Abner
Gonzalez
537-555-7746
266-555-3461
3,793,784
Joshua
Fisher
500-555-5310
205-555-3231
3,793,785
Sandra
Moore
408-555-7036
650-555-6473
3,793,786
Maria
Clark
863-555-2572
562-555-5263
3,793,787
Jacob
Bailey
800-555-4180
715-555-1321
3,793,788
Joshua
Gonzalez
761-555-8573
675-555-6852