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
22,259
Hailey
Smiith
206-555-4767
377-555-2450
22,260
Hailey
Nelson
878-555-5477
210-555-1084
22,261
Maria
Donahue
783-555-1482
651-555-4136
22,262
Hailey
Gomez
360-555-2866
833-555-1778
22,263
Sandra
Bailey
473-555-6020
537-555-6475
22,264
Linda
Bailey
256-555-2528
622-555-8402
22,265
Keith
Ortiz
358-555-4076
574-555-1880
22,266
Matthew
Wilson
467-555-2822
310-555-6653