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,481,172
Sarah
Lee
725-555-3661
528-555-4127
3,481,173
Pamela
Lee
313-555-4303
477-555-1834
3,481,174
Sarah
Baker
810-555-6633
288-555-6326
3,481,175
Matthew
Jones
761-555-2566
527-555-2545
3,481,176
Abner
Wilson
538-555-7068
481-555-6335
3,481,177
Gerald
Johnson
435-555-5341
457-555-7352
3,481,178
Samantha
Ortiz
463-555-2548
224-555-4687
3,481,179
Pamela
Cruz
703-555-4830
824-555-7075