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
707,235
Jose
Black
224-555-5612
388-555-7000
707,236
Virginia
Donahue
438-555-3571
805-555-8707
707,237
Timothy
Black
612-555-4506
530-555-4072
707,238
Timothy
Murray
524-555-8480
874-555-5800
707,239
Willie
Wilson
355-555-1658
416-555-1344
707,240
Abner
Rose
200-555-2425
331-555-7522
707,241
Samantha
Fisher
516-555-6861
218-555-5872
707,242
Christopher
Williams
684-555-1553
412-555-3483