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
53,910
Jack
Lee
757-555-4667
660-555-6207
53,911
Virginia
Baker
235-555-8526
807-555-8566
53,912
Samantha
Lee
863-555-4018
485-555-4508
53,913
Debra
Williams
257-555-7361
228-555-6804
53,914
Christopher
Bailey
463-555-5371
324-555-6461
53,915
Debra
Cruz
335-555-8588
502-555-3253
53,916
Nicholas
Fisher
486-555-6465
805-555-3431
53,917
Sarah
Cruz
747-555-3316
838-555-8485