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
6,046
Sandra
Clark
863-555-7682
251-555-2237
6,047
Gerald
Gonzalez
258-555-8467
378-555-5870
6,048
Linda
Murray
583-555-4702
708-555-2128
6,049
Jose
Moore
884-555-3887
571-555-1600
6,050
Abner
Rose
430-555-1316
616-555-1075
6,051
Maria
Donahue
441-555-1550
230-555-1420
6,052
Willie
Murray
355-555-1068
683-555-7436
6,053
Michael
Murray
262-555-2318
417-555-7468