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
5,517,133
Douglas
Davis
241-555-4777
836-555-2448
5,517,134
Gerald
Williams
703-555-8364
304-555-8327
5,517,135
Nicholas
Bailey
441-555-7026
436-555-8843
5,517,136
Nicholas
Cruz
534-555-3316
608-555-8218
5,517,137
Sandra
Cruz
262-555-8587
842-555-4022
5,517,138
Nicholas
Johnson
655-555-1066
285-555-1735
5,517,139
Matthew
Murray
435-555-7628
841-555-3401
5,517,140
Abby
Johnson
713-555-1613
446-555-4526