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
18,818
Michael
Clark
870-555-6584
725-555-5381
18,819
Brianna
Jones
543-555-5476
237-555-6445
18,820
Joshua
Lee
664-555-6522
765-555-7113
18,821
Larry
Gomez
532-555-4237
773-555-4042
18,822
Pamela
Murray
327-555-2200
568-555-8753
18,823
Debra
Hall
400-555-2838
541-555-7801
18,824
Matthew
Davis
337-555-1106
448-555-8876
18,825
Abby
Clark
887-555-1214
527-555-7854