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
4,806
Jacob
Nelson
421-555-5314
713-555-5425
4,807
Emily
Nelson
633-555-7863
430-555-5518
4,808
Christopher
Baker
333-555-1306
754-555-4381
4,809
Abner
Jones
605-555-5415
247-555-8683
4,810
Sandra
Smiith
666-555-2501
251-555-3330
4,811
Timothy
Cruz
381-555-7178
853-555-5781
4,812
Christopher
Jones
224-555-5320
870-555-4073
4,813
Christopher
Gonzalez
280-555-6732
533-555-1588