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
226,766
Gerald
Bailey
886-555-1483
238-555-5580
226,767
Samuel
Bailey
373-555-5212
362-555-4384
226,768
Jacob
Smiith
476-555-6820
212-555-1036
226,769
Emily
Cruz
721-555-5640
378-555-8118
226,770
Emily
Moore
251-555-5021
842-555-5836
226,771
Samantha
Hall
410-555-5655
401-555-5600
226,772
Timothy
Brown
855-555-8427
820-555-1315
226,773
Joshua
Fisher
401-555-1752
560-555-5747