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
1,470,424
Virginia
Graham
380-555-6336
258-555-5870
1,470,425
Timothy
Johnson
262-555-3453
647-555-5567
1,470,426
Sandra
Bailey
364-555-4524
565-555-3885
1,470,427
Debra
Allen
831-555-6056
857-555-6662
1,470,428
Kathleen
Murray
651-555-3546
715-555-8304
1,470,429
Emily
Ortiz
743-555-2406
378-555-6077
1,470,430
Larry
Gomez
415-555-7273
285-555-3458
1,470,431
Pamela
Johnson
406-555-6004
313-555-7750