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
30,474
Debra
Graham
555-555-2862
735-555-8162
30,475
Christopher
Clark
212-555-5150
302-555-8873
30,476
Joshua
Jones
743-555-3502
223-555-1887
30,477
Timothy
Nelson
570-555-5066
778-555-3733
30,478
Timothy
Johnson
325-555-2104
750-555-5426
30,479
Matthew
Williams
610-555-5662
282-555-5183
30,480
Nicholas
Rose
437-555-3251
281-555-3504
30,481
Maria
Jones
853-555-4516
753-555-5240