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
19,035
Brianna
Allen
581-555-1564
688-555-8618
19,036
Debra
Gomez
482-555-8356
443-555-5652
19,037
Hailey
Nelson
756-555-8850
541-555-4217
19,038
Joshua
Nelson
563-555-3330
302-555-7015
19,039
Jose
Williams
334-555-5885
586-555-3015
19,040
Maria
Davis
832-555-8575
835-555-6815
19,041
Abner
Gonzalez
327-555-8068
427-555-8248
19,042
Abner
Rose
673-555-8432
365-555-8024