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
44,827
Sarah
Graham
858-555-7616
578-555-4116
44,828
Christopher
Moore
717-555-6854
308-555-5653
44,829
Sarah
Allen
653-555-3253
871-555-5880
44,830
Keith
Graham
576-555-8606
675-555-6347
44,831
Samuel
Rose
740-555-4277
638-555-8124
44,832
Abby
Baker
477-555-4631
886-555-5254
44,833
Samuel
Hall
580-555-6313
728-555-5151
44,834
Sarah
Baker
606-555-1256
780-555-4857