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
3,287
Sarah
Lee
231-555-8538
601-555-4015
3,288
Douglas
Ortiz
383-555-2536
846-555-5431
3,289
Samuel
Murray
676-555-2880
606-555-2145
3,290
Michael
Wilson
588-555-5655
706-555-5268
3,291
Jose
Lee
432-555-1040
460-555-2252
3,292
Emily
Graham
211-555-6414
551-555-5361
3,293
Virginia
Allen
658-555-7706
333-555-5207
3,294
Brianna
Allen
418-555-3060
312-555-5005