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
776,830
Douglas
Nelson
867-555-7858
620-555-5172
776,831
Timothy
Donahue
321-555-5425
715-555-2286
776,832
Linda
Bailey
230-555-8255
646-555-4846
776,833
Abner
Gomez
732-555-1502
420-555-5827
776,834
Maria
Fisher
415-555-1251
273-555-6736
776,835
Pamela
Gonzalez
552-555-3245
448-555-7831
776,836
Abner
Gomez
514-555-1186
588-555-1364
776,837
Gerald
Cruz
728-555-8362
730-555-1440