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
61,877
Gerald
Graham
433-555-6240
384-555-1701
61,878
Sandra
Murray
788-555-6755
477-555-4220
61,879
Timothy
Allen
545-555-5631
841-555-7503
61,880
Christopher
Baker
326-555-7755
365-555-5687
61,881
Pamela
Hall
418-555-3151
533-555-8523
61,882
Joshua
Baker
880-555-8418
807-555-1484
61,883
Kathleen
Moore
755-555-3663
682-555-1105
61,884
Kathleen
Gonzalez
764-555-1450
826-555-8754