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
1,861
Hailey
Black
560-555-1084
260-555-7423
1,862
Michael
Moore
586-555-2648
602-555-4454
1,863
Christopher
Lee
237-555-3584
628-555-5668
1,864
Sarah
Smiith
582-555-2207
481-555-7080
1,865
Jose
Donahue
367-555-6783
257-555-4442
1,866
Hailey
Murray
513-555-3477
314-555-4367
1,867
Sandra
Lee
347-555-4023
433-555-2756
1,868
Abby
Brown
324-555-8201
552-555-6174