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
705,964
Sandra
Williams
767-555-6732
585-555-8022
705,965
Michael
Donahue
266-555-7380
654-555-2534
705,966
Pamela
Graham
514-555-2017
881-555-5085
705,967
Linda
Gonzalez
760-555-4842
545-555-6452
705,968
Hailey
Bailey
785-555-6544
574-555-4461
705,969
Brianna
Lee
581-555-1858
847-555-6188
705,970
Hailey
Williams
840-555-8846
881-555-1045
705,971
Larry
Rose
268-555-1573
744-555-3285