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
5,674
Abner
Donahue
633-555-4725
251-555-4372
5,675
Abby
Smiith
803-555-8758
654-555-2044
5,676
Samuel
Fisher
714-555-5665
313-555-7524
5,677
Kathleen
Johnson
872-555-3152
526-555-7766
5,678
Sandra
Hall
753-555-3225
816-555-3758
5,679
Keith
Fisher
870-555-5877
520-555-2635
5,680
Christopher
Black
578-555-3322
416-555-4648
5,681
Brianna
Baker
744-555-5671
303-555-7553