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
5,515,087
Hailey
Gonzalez
656-555-7300
217-555-1710
5,515,088
Christopher
Bailey
332-555-5545
701-555-4723
5,515,089
Christopher
Rose
307-555-3251
645-555-2610
5,515,090
Sarah
Black
874-555-8607
457-555-7740
5,515,091
Kathleen
Hall
840-555-3451
522-555-3326
5,515,092
Jose
Williams
581-555-2425
528-555-1467
5,515,093
Jack
Cruz
252-555-4624
685-555-5556
5,515,094
Timothy
Jones
333-555-6582
618-555-8615