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,569
Jacob
Davis
367-555-5741
412-555-3608
22,570
Hailey
Wilson
635-555-6137
421-555-7702
22,571
Linda
Gonzalez
758-555-2341
482-555-8118
22,572
Kathleen
Hall
714-555-6786
364-555-2266
22,573
Matthew
Graham
467-555-8647
752-555-6436
22,574
Joshua
Hall
472-555-6487
666-555-1855
22,575
Jacob
Donahue
231-555-5760
387-555-1337
22,576
Willie
Ortiz
867-555-4148
306-555-7832