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,200,379
Nicholas
Lee
275-555-2158
470-555-6327
3,200,380
Nicholas
Wilson
707-555-5183
284-555-7240
3,200,381
Pamela
Gomez
638-555-1450
767-555-3438
3,200,382
Hailey
Ortiz
312-555-4184
360-555-2248
3,200,383
Virginia
Rose
610-555-2275
585-555-8288
3,200,384
Gerald
Bailey
408-555-1025
665-555-5752
3,200,385
Jacob
Gonzalez
800-555-8164
212-555-8501
3,200,386
Douglas
Gomez
465-555-2081
400-555-8682