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,326
Sandra
Johnson
814-555-1348
458-555-4431
2,327
Abby
Fisher
626-555-2455
774-555-7887
2,328
Pamela
Donahue
723-555-1853
872-555-2242
2,329
Pamela
Smiith
242-555-1048
802-555-7584
2,330
Linda
Gomez
843-555-5424
872-555-3222
2,331
Samuel
Lee
614-555-3487
516-555-1155
2,332
Douglas
Wilson
362-555-3723
421-555-3778
2,333
Gerald
Jones
448-555-7810
423-555-8037