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
17,795
Sandra
Gomez
376-555-2106
536-555-7182
17,796
Abner
Brown
453-555-6154
585-555-1178
17,797
Jack
Gomez
855-555-1237
833-555-7513
17,798
Willie
Murray
211-555-5328
365-555-6705
17,799
Maria
Clark
674-555-4316
342-555-6514
17,800
Sandra
Bailey
457-555-2286
823-555-2348
17,801
Emily
Graham
368-555-1337
765-555-2145
17,802
Emily
Brown
451-555-8545
607-555-3336