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
45,292
Emily
Rose
352-555-8362
845-555-8485
45,293
Abner
Williams
772-555-7544
635-555-8427
45,294
Douglas
Graham
882-555-3208
787-555-6624
45,295
Larry
Johnson
868-555-2487
526-555-5582
45,296
Sandra
Moore
381-555-2218
638-555-4568
45,297
Linda
Jones
836-555-4151
484-555-5828
45,298
Christopher
Baker
666-555-6500
381-555-5187
45,299
Samuel
Ortiz
504-555-1577
542-555-1205