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
373
Matthew
Davis
823-555-7154
333-555-3411
374
Douglas
Moore
355-555-2661
561-555-4716
375
Jack
Gomez
272-555-8066
332-555-3072
376
Linda
Black
374-555-8324
442-555-6163
377
Willie
Clark
863-555-5854
787-555-7514
378
Willie
Fisher
683-555-4140
525-555-4104
379
Linda
Clark
730-555-4746
561-555-6280
380
Maria
Smiith
872-555-6013
806-555-6666