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
5,302
Samantha
Cruz
753-555-2083
352-555-1738
5,303
Pamela
Smiith
258-555-8526
221-555-5128
5,304
Debra
Bailey
222-555-1112
263-555-5168
5,305
Jacob
Gomez
617-555-2360
451-555-6200
5,306
Matthew
Brown
283-555-8568
486-555-7630
5,307
Brianna
Fisher
507-555-8538
624-555-7007
5,308
Larry
Davis
382-555-6458
480-555-5411
5,309
Linda
Nelson
446-555-7638
547-555-3263