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
20,306
Pamela
Fisher
348-555-4527
603-555-2455
20,307
Samantha
Donahue
606-555-7531
886-555-8100
20,308
Hailey
Davis
715-555-2507
467-555-3802
20,309
Jacob
Cruz
441-555-8008
525-555-4240
20,310
Virginia
Wilson
505-555-5677
262-555-5042
20,311
Samantha
Williams
515-555-2788
200-555-5306
20,312
Abner
Moore
517-555-5871
254-555-5642
20,313
Larry
Davis
481-555-1762
612-555-5066