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
3,474,538
Pamela
Williams
217-555-3832
441-555-1136
3,474,539
Larry
Ortiz
615-555-8651
332-555-8108
3,474,540
Willie
Lee
213-555-4815
616-555-6275
3,474,541
Keith
Williams
463-555-5562
456-555-7221
3,474,542
Pamela
Murray
623-555-6258
567-555-5253
3,474,543
Matthew
Cruz
640-555-5274
454-555-2473
3,474,544
Michael
Ortiz
840-555-6125
328-555-7374
3,474,545
Abner
Davis
344-555-6654
630-555-2644