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
3,787,023
Michael
Gomez
628-555-8518
456-555-5603
3,787,024
Debra
Nelson
480-555-8248
765-555-7274
3,787,025
Kathleen
Hall
553-555-4767
876-555-7241
3,787,026
Debra
Davis
844-555-7488
470-555-5834
3,787,027
Samuel
Rose
876-555-6388
230-555-7874
3,787,028
Sandra
Fisher
254-555-1821
432-555-1564
3,787,029
Jose
Rose
378-555-6351
503-555-2388
3,787,030
Willie
Hall
335-555-2776
235-555-4337