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
55,460
Matthew
Davis
812-555-3564
866-555-3224
55,461
Michael
Davis
845-555-4287
326-555-3147
55,462
Linda
Cruz
516-555-4818
521-555-8306
55,463
Hailey
Allen
521-555-1723
624-555-4881
55,464
Matthew
Bailey
332-555-6280
586-555-8227
55,465
Douglas
Ortiz
504-555-3810
801-555-8285
55,466
Samantha
Donahue
821-555-8144
647-555-3487
55,467
Samuel
Moore
436-555-6255
311-555-7854