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
3,938
Maria
Smiith
812-555-2006
781-555-3280
3,939
Abby
Fisher
508-555-7732
315-555-3408
3,940
Nicholas
Allen
688-555-3453
471-555-4751
3,941
Christopher
Wilson
522-555-5802
415-555-2610
3,942
Christopher
Cruz
315-555-6280
433-555-7426
3,943
Abner
Murray
260-555-1707
408-555-6765
3,944
Douglas
Donahue
706-555-8743
800-555-4148
3,945
Nicholas
Brown
782-555-2410
845-555-3283