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
126,946
Keith
Brown
201-555-6670
737-555-7782
126,947
Abby
Williams
556-555-3778
881-555-2324
126,948
Pamela
Brown
573-555-5261
540-555-3704
126,949
Kathleen
Davis
418-555-1350
813-555-7128
126,950
Virginia
Johnson
806-555-8105
387-555-3765
126,951
Linda
Wilson
806-555-7455
428-555-6361
126,952
Abby
Allen
332-555-6350
706-555-2854
126,953
Timothy
Brown
774-555-3247
427-555-5138