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
55,367
Brianna
Graham
262-555-2468
524-555-3447
55,368
Timothy
Donahue
610-555-6433
502-555-2522
55,369
Linda
Gomez
862-555-4673
312-555-6045
55,370
Timothy
Allen
600-555-2887
563-555-4511
55,371
Michael
Bailey
346-555-4023
683-555-5277
55,372
Douglas
Hall
888-555-2348
731-555-5852
55,373
Samuel
Gonzalez
551-555-7712
408-555-5580
55,374
Larry
Baker
207-555-6860
673-555-1542