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
7,944,898
Gerald
Johnson
720-555-2723
302-555-7874
7,944,899
Christopher
Williams
412-555-5378
343-555-1037
7,944,900
Abner
Rose
268-555-5411
713-555-4767
7,944,901
Keith
Baker
404-555-7234
818-555-1254
7,944,902
Debra
Black
513-555-1762
803-555-8127
7,944,903
Maria
Lee
550-555-2762
375-555-6075
7,944,904
Willie
Donahue
676-555-3623
467-555-6864
7,944,905
Sandra
Johnson
877-555-5477
842-555-4488