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,740
Maria
Brown
376-555-8118
327-555-7303
20,741
Samuel
Nelson
236-555-6041
286-555-6312
20,742
Nicholas
Allen
334-555-2275
417-555-3122
20,743
Douglas
Fisher
705-555-6337
365-555-5673
20,744
Linda
Nelson
304-555-2630
402-555-5065
20,745
Virginia
Donahue
848-555-8257
457-555-5604
20,746
Maria
Jones
780-555-5814
475-555-3248
20,747
Matthew
Fisher
506-555-1554
617-555-3381