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
52,887
Hailey
Graham
884-555-7625
528-555-6464
52,888
Nicholas
Gonzalez
358-555-3476
358-555-5585
52,889
Willie
Nelson
725-555-7837
858-555-8247
52,890
Jack
Jones
714-555-3616
383-555-7865
52,891
Larry
Davis
653-555-7100
677-555-5675
52,892
Maria
Clark
338-555-5240
558-555-2872
52,893
Abner
Moore
687-555-3170
525-555-4758
52,894
Jack
Baker
584-555-2462
534-555-2654