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,790,309
Sandra
Smiith
682-555-7221
374-555-5412
3,790,310
Sandra
Davis
881-555-2721
867-555-8162
3,790,311
Matthew
Clark
743-555-2022
464-555-3430
3,790,312
Michael
Baker
403-555-4272
746-555-1483
3,790,313
Virginia
Hall
887-555-3307
285-555-3861
3,790,314
Maria
Williams
522-555-6712
824-555-2774
3,790,315
Hailey
Nelson
233-555-2133
477-555-5448
3,790,316
Abner
Gomez
837-555-7641
666-555-2621