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
3,783,086
Virginia
Gonzalez
800-555-8440
815-555-8276
3,783,087
Debra
Hall
364-555-3330
770-555-2814
3,783,088
Debra
Ortiz
212-555-7147
305-555-2031
3,783,089
Sarah
Smiith
253-555-1000
786-555-1433
3,783,090
Joshua
Rose
831-555-6337
468-555-7171
3,783,091
Joshua
Black
617-555-3340
362-555-4767
3,783,092
Jack
Davis
436-555-4402
283-555-7140
3,783,093
Gerald
Gomez
222-555-3005
883-555-1772