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
28,521
Samuel
Bailey
352-555-2434
803-555-4526
28,522
Douglas
Jones
205-555-3783
455-555-1662
28,523
Samuel
Williams
881-555-6755
770-555-7142
28,524
Samantha
Murray
437-555-6624
227-555-8730
28,525
Matthew
Hall
223-555-2686
472-555-6262
28,526
Emily
Wilson
808-555-3213
836-555-5222
28,527
Joshua
Cruz
365-555-4862
334-555-3488
28,528
Jack
Black
775-555-5832
345-555-2181