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
653,822
Linda
Bailey
311-555-2104
430-555-4885
653,823
Jose
Murray
860-555-6236
637-555-3164
653,824
Matthew
Black
302-555-2844
351-555-3348
653,825
Abner
Smiith
262-555-6621
414-555-5153
653,826
Pamela
Nelson
831-555-4241
843-555-3055
653,827
Jose
Wilson
443-555-7052
878-555-8421
653,828
Virginia
Gomez
565-555-1237
471-555-5223
653,829
Sandra
Fisher
375-555-3656
764-555-3742