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
720,782
Hailey
Jones
715-555-5806
816-555-4481
720,783
Abby
Brown
448-555-7445
740-555-3360
720,784
Keith
Hall
514-555-8365
881-555-5870
720,785
Jose
Brown
853-555-4110
621-555-4405
720,786
Joshua
Donahue
784-555-3335
665-555-1015
720,787
Abby
Smiith
870-555-3233
405-555-7818
720,788
Larry
Ortiz
453-555-5665
805-555-3506
720,789
Abby
Brown
602-555-4513
218-555-7002