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
559
Christopher
Davis
857-555-1075
514-555-6564
560
Brianna
Lee
307-555-1651
707-555-4811
561
Samuel
Gomez
327-555-2286
643-555-3247
562
Gerald
Donahue
305-555-1452
423-555-5111
563
Christopher
Bailey
326-555-8688
838-555-6508
564
Sandra
Williams
820-555-8220
267-555-5012
565
Pamela
Brown
252-555-4286
681-555-5354
566
Samuel
Nelson
637-555-7032
840-555-2668