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
753,022
Pamela
Johnson
540-555-7707
423-555-8537
753,023
Samantha
Hall
433-555-5425
585-555-6527
753,024
Joshua
Wilson
688-555-4326
345-555-4630
753,025
Nicholas
Graham
552-555-7845
487-555-8543
753,026
Nicholas
Murray
458-555-7156
428-555-4823
753,027
Emily
Black
530-555-1664
563-555-5518
753,028
Debra
Davis
355-555-4111
286-555-5751
753,029
Christopher
Brown
827-555-5775
300-555-5515