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,788,728
Linda
Cruz
702-555-4100
532-555-6522
3,788,729
Timothy
Ortiz
588-555-2607
630-555-7316
3,788,730
Matthew
Johnson
662-555-6701
888-555-8254
3,788,731
Samantha
Bailey
542-555-7713
455-555-1537
3,788,732
Michael
Lee
378-555-1182
485-555-8301
3,788,733
Gerald
Ortiz
770-555-5473
627-555-3176
3,788,734
Joshua
Ortiz
451-555-4800
832-555-4160
3,788,735
Jose
Jones
284-555-7031
582-555-3285