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
55,057
Abby
Moore
346-555-4168
718-555-8325
55,058
Joshua
Graham
752-555-8505
777-555-5164
55,059
Timothy
Gonzalez
737-555-2743
226-555-6023
55,060
Abner
Rose
484-555-7335
515-555-3528
55,061
Gerald
Baker
654-555-5003
207-555-1183
55,062
Debra
Williams
454-555-5118
585-555-7742
55,063
Jose
Allen
225-555-8401
466-555-4823
55,064
Jose
Baker
781-555-7603
440-555-8638