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,474,600
Brianna
Ortiz
776-555-4687
767-555-1638
3,474,601
Nicholas
Fisher
654-555-4640
541-555-1702
3,474,602
Jacob
Clark
760-555-2832
318-555-4622
3,474,603
Timothy
Jones
367-555-4803
445-555-6365
3,474,604
Abner
Nelson
533-555-7848
285-555-6816
3,474,605
Matthew
Davis
310-555-6172
551-555-2661
3,474,606
Abby
Brown
781-555-7044
583-555-5245
3,474,607
Nicholas
Gomez
258-555-4544
825-555-6803