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
5,515,273
Samantha
Ortiz
780-555-4850
234-555-8038
5,515,274
Sarah
Cruz
318-555-5337
205-555-6026
5,515,275
Sarah
Davis
634-555-4246
813-555-7213
5,515,276
Michael
Fisher
730-555-5273
575-555-8681
5,515,277
Christopher
Donahue
471-555-4276
665-555-7084
5,515,278
Joshua
Graham
583-555-4110
835-555-2537
5,515,279
Abby
Graham
305-555-4041
750-555-2337
5,515,280
Gerald
Black
513-555-8676
756-555-8538