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
157,325
Pamela
Williams
515-555-8236
367-555-4528
157,326
Willie
Brown
228-555-3082
448-555-6617
157,327
Brianna
Jones
407-555-5823
741-555-2622
157,328
Sarah
Moore
414-555-4327
757-555-1114
157,329
Samantha
Williams
656-555-8061
616-555-2706
157,330
Abner
Allen
751-555-5181
284-555-2617
157,331
Jose
Jones
404-555-5125
653-555-3847
157,332
Joshua
Johnson
457-555-7353
601-555-7241