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
1,470,331
Pamela
Williams
772-555-5532
363-555-4213
1,470,332
Joshua
Johnson
381-555-8245
348-555-6885
1,470,333
Christopher
Johnson
755-555-5454
536-555-8031
1,470,334
Linda
Brown
552-555-7841
787-555-3744
1,470,335
Keith
Gonzalez
513-555-2464
782-555-1270
1,470,336
Hailey
Gonzalez
201-555-5733
642-555-5580
1,470,337
Timothy
Brown
380-555-1274
456-555-7500
1,470,338
Jose
Donahue
723-555-7802
573-555-2448