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
6,933,306
Larry
Bailey
308-555-4586
882-555-3318
6,933,307
Douglas
Smiith
224-555-4130
835-555-6638
6,933,308
Jack
Gomez
408-555-3307
616-555-5017
6,933,309
Gerald
Black
787-555-7787
366-555-8473
6,933,310
Virginia
Bailey
340-555-8371
484-555-8062
6,933,311
Samantha
Lee
788-555-6446
541-555-1262
6,933,312
Nicholas
Baker
552-555-2772
820-555-8806
6,933,313
Abner
Wilson
715-555-3602
288-555-5370