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
100,906
Christopher
Murray
231-555-4225
217-555-4743
100,907
Larry
Ortiz
638-555-3638
743-555-5180
100,908
Jack
Baker
866-555-1755
427-555-1573
100,909
Maria
Murray
714-555-6572
278-555-7888
100,910
Pamela
Graham
830-555-2517
785-555-2525
100,911
Douglas
Fisher
625-555-1348
216-555-3406
100,912
Debra
Fisher
785-555-1102
775-555-4558
100,913
Virginia
Fisher
533-555-2574
355-555-8328