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
1,470,734
Michael
Williams
400-555-5406
527-555-2370
1,470,735
Linda
Davis
830-555-3010
287-555-7014
1,470,736
Kathleen
Fisher
242-555-2503
318-555-4646
1,470,737
Jack
Williams
438-555-4332
506-555-4722
1,470,738
Nicholas
Davis
360-555-4242
687-555-4524
1,470,739
Maria
Ortiz
418-555-8547
440-555-2314
1,470,740
Abby
Allen
524-555-1017
703-555-1670
1,470,741
Abner
Williams
247-555-1220
412-555-4273