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
654,597
Kathleen
Gonzalez
306-555-2642
342-555-7472
654,598
Nicholas
Williams
287-555-6360
815-555-5481
654,599
Jose
Moore
660-555-6081
733-555-8134
654,600
Larry
Gonzalez
640-555-2652
716-555-5150
654,601
Timothy
Jones
517-555-1026
663-555-4652
654,602
Joshua
Black
767-555-8257
202-555-2444
654,603
Linda
Gomez
401-555-3068
403-555-4860
654,604
Larry
Allen
235-555-7765
238-555-4330