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
31,125
Nicholas
Cruz
774-555-8761
675-555-4688
31,126
Sarah
Allen
300-555-4248
374-555-6217
31,127
Maria
Moore
726-555-3375
778-555-1721
31,128
Virginia
Donahue
654-555-7775
253-555-6248
31,129
Brianna
Moore
684-555-7165
518-555-4563
31,130
Jacob
Nelson
702-555-1573
501-555-7761
31,131
Abby
Johnson
315-555-3471
754-555-1783
31,132
Maria
Graham
844-555-1335
740-555-5071