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,942
Brianna
Moore
334-555-2400
231-555-8177
18,943
Debra
Murray
451-555-3656
812-555-8551
18,944
Gerald
Baker
325-555-4272
318-555-7577
18,945
Douglas
Jones
574-555-6574
642-555-8088
18,946
Pamela
Baker
501-555-8503
207-555-1810
18,947
Matthew
Graham
647-555-1680
624-555-7410
18,948
Pamela
Graham
441-555-7601
547-555-1501
18,949
Nicholas
Jones
858-555-3012
463-555-4482