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,479,343
Sarah
Baker
672-555-7387
673-555-8076
3,479,344
Michael
Wilson
273-555-2837
344-555-3138
3,479,345
Gerald
Gonzalez
353-555-3810
345-555-5357
3,479,346
Abner
Fisher
703-555-3278
233-555-8267
3,479,347
Christopher
Allen
220-555-7043
413-555-5038
3,479,348
Christopher
Nelson
745-555-6268
247-555-3848
3,479,349
Emily
Murray
341-555-4415
416-555-2477
3,479,350
Willie
Murray
418-555-1316
275-555-7834