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
34,163
Hailey
Black
645-555-2171
455-555-1831
34,164
Joshua
Ortiz
585-555-6362
384-555-4358
34,165
Timothy
Gomez
444-555-1244
656-555-1751
34,166
Joshua
Gonzalez
587-555-5181
655-555-2824
34,167
Debra
Lee
217-555-2651
737-555-5172
34,168
Debra
Clark
747-555-6677
345-555-4617
34,169
Larry
Graham
473-555-3347
221-555-5214
34,170
Samuel
Allen
616-555-3654
243-555-5678