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
103,882
Debra
Davis
718-555-3422
522-555-8380
103,883
Maria
Brown
585-555-4868
234-555-5828
103,884
Gerald
Williams
522-555-2714
746-555-6456
103,885
Samantha
Ortiz
634-555-5625
266-555-3745
103,886
Samantha
Allen
550-555-2387
427-555-6180
103,887
Christopher
Nelson
204-555-4256
705-555-5741
103,888
Maria
Black
328-555-2810
525-555-8258
103,889
Sarah
Cruz
381-555-2671
317-555-6837