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
2,140
Kathleen
Johnson
806-555-7718
322-555-4132
2,141
Timothy
Moore
357-555-5512
723-555-4408
2,142
Gerald
Gomez
361-555-3360
738-555-5132
2,143
Jack
Gomez
477-555-4450
867-555-3684
2,144
Matthew
Donahue
636-555-1015
608-555-4347
2,145
Abner
Gomez
444-555-4402
745-555-7042
2,146
Kathleen
Moore
722-555-8544
422-555-8650
2,147
Brianna
Moore
484-555-1605
801-555-5533