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,570,577
Brianna
Wilson
646-555-4651
643-555-2037
5,570,578
Samuel
Graham
218-555-5132
310-555-4775
5,570,579
Michael
Rose
453-555-3578
371-555-2725
5,570,580
Linda
Davis
262-555-1728
252-555-8516
5,570,581
Douglas
Baker
422-555-1184
625-555-5075
5,570,582
Debra
Moore
838-555-7123
557-555-5256
5,570,583
Jacob
Fisher
532-555-2802
308-555-7774
5,570,584
Debra
Graham
517-555-8800
405-555-5174