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
5,566,578
Joshua
Fisher
385-555-8461
453-555-8176
5,566,579
Emily
Brown
214-555-7867
421-555-1183
5,566,580
Sarah
Smiith
308-555-3341
237-555-5825
5,566,581
Michael
Lee
248-555-8043
687-555-4888
5,566,582
Pamela
Fisher
528-555-6212
454-555-3281
5,566,583
Emily
Williams
487-555-3515
400-555-4345
5,566,584
Willie
Cruz
561-555-7873
833-555-8715
5,566,585
Kathleen
Hall
216-555-2447
846-555-2135