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
101,495
Douglas
Bailey
674-555-6673
653-555-6743
101,496
Nicholas
Clark
647-555-6574
311-555-4762
101,497
Douglas
Baker
347-555-6544
756-555-8533
101,498
Keith
Johnson
838-555-5033
855-555-5470
101,499
Abby
Williams
474-555-2650
757-555-4737
101,500
Douglas
Lee
470-555-6267
734-555-3607
101,501
Joshua
Nelson
463-555-7870
448-555-2255
101,502
Pamela
Ortiz
548-555-3380
883-555-4751