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
18,694
Sandra
Donahue
716-555-5024
500-555-8251
18,695
Douglas
Davis
626-555-5170
626-555-4802
18,696
Virginia
Gomez
675-555-7101
682-555-7342
18,697
Linda
Ortiz
324-555-1360
714-555-5770
18,698
Hailey
Bailey
805-555-1040
238-555-5556
18,699
Timothy
Murray
345-555-2177
856-555-6131
18,700
Nicholas
Lee
431-555-8025
263-555-7557
18,701
Brianna
Johnson
521-555-7778
346-555-8167