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,705
Larry
Cruz
771-555-2655
221-555-8168
5,706
Emily
Wilson
247-555-2756
503-555-2333
5,707
Jack
Wilson
824-555-7024
277-555-8106
5,708
Abner
Ortiz
780-555-2612
861-555-8307
5,709
Sandra
Gomez
343-555-7441
548-555-8445
5,710
Willie
Jones
823-555-3313
454-555-4524
5,711
Hailey
Ortiz
272-555-2407
753-555-5230
5,712
Samantha
Gonzalez
335-555-5654
677-555-2268