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
656,240
Linda
Ortiz
367-555-2617
736-555-7725
656,241
Debra
Gonzalez
611-555-3267
853-555-2106
656,242
Nicholas
Davis
348-555-8548
336-555-5045
656,243
Matthew
Cruz
587-555-2124
732-555-7733
656,244
Abner
Lee
870-555-4280
424-555-3236
656,245
Keith
Moore
335-555-8656
583-555-1313
656,246
Jack
Bailey
257-555-6853
373-555-3637
656,247
Samuel
Johnson
868-555-6627
607-555-4434