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
69,348
Gerald
Moore
614-555-4163
258-555-7785
69,349
Debra
Cruz
317-555-5770
886-555-3132
69,350
Jacob
Smiith
821-555-1456
768-555-6226
69,351
Willie
Johnson
527-555-7611
763-555-1157
69,352
Abby
Cruz
321-555-1860
681-555-4175
69,353
Kathleen
Bailey
386-555-6244
613-555-7676
69,354
Christopher
Clark
465-555-3172
443-555-6682
69,355
Samuel
Gomez
845-555-4181
351-555-1428