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
54,716
Willie
Ortiz
365-555-3331
553-555-6880
54,717
Samantha
Wilson
578-555-7115
623-555-8336
54,718
Abby
Rose
521-555-2337
817-555-4576
54,719
Virginia
Ortiz
817-555-6722
522-555-3353
54,720
Douglas
Bailey
238-555-7830
408-555-1235
54,721
Maria
Smiith
814-555-3330
303-555-2647
54,722
Emily
Fisher
452-555-5677
844-555-5708
54,723
Debra
Johnson
572-555-3846
522-555-2622