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
650,288
Jacob
Jones
464-555-7182
417-555-1862
650,289
Samuel
Johnson
460-555-2701
313-555-4225
650,290
Matthew
Donahue
751-555-1130
235-555-2083
650,291
Hailey
Rose
670-555-7671
355-555-8674
650,292
Jose
Fisher
737-555-6555
703-555-1213
650,293
Brianna
Clark
204-555-3483
407-555-2875
650,294
Abner
Cruz
650-555-3714
250-555-5677
650,295
Linda
Baker
371-555-4724
750-555-2020