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
707,328
Nicholas
Bailey
634-555-3410
278-555-8431
707,329
Timothy
Rose
400-555-3682
328-555-8358
707,330
Abby
Clark
553-555-6825
213-555-8440
707,331
Sarah
Murray
730-555-8678
572-555-4675
707,332
Sandra
Williams
478-555-3343
830-555-6235
707,333
Hailey
Fisher
371-555-2257
710-555-2652
707,334
Kathleen
Gonzalez
738-555-4031
241-555-1526
707,335
Timothy
Baker
506-555-2083
445-555-6188