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
226,549
Michael
Graham
361-555-1526
720-555-1466
226,550
Larry
Wilson
488-555-2256
340-555-7777
226,551
Pamela
Donahue
331-555-1383
635-555-6617
226,552
Virginia
Williams
703-555-4515
785-555-6772
226,553
Maria
Nelson
606-555-3365
528-555-5873
226,554
Samantha
Murray
212-555-2035
354-555-8031
226,555
Abner
Ortiz
575-555-5061
367-555-4853
226,556
Emily
Clark
637-555-4174
242-555-7502