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
13,579
Maria
Clark
278-555-1237
866-555-5205
13,580
Timothy
Moore
508-555-8136
801-555-3827
13,581
Samantha
Murray
812-555-5315
320-555-5503
13,582
Virginia
Allen
800-555-3711
785-555-4483
13,583
Joshua
Wilson
647-555-1622
575-555-8205
13,584
Larry
Black
563-555-6004
344-555-4633
13,585
Emily
Davis
873-555-4183
606-555-7706
13,586
Keith
Lee
562-555-1231
807-555-8763