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,380
Matthew
Moore
786-555-7058
675-555-7863
3,381
Michael
Davis
788-555-4868
620-555-2084
3,382
Samantha
Allen
654-555-6366
830-555-4536
3,383
Keith
Baker
474-555-7833
778-555-2724
3,384
Abner
Baker
386-555-1346
667-555-8236
3,385
Emily
Gonzalez
355-555-6324
533-555-4281
3,386
Timothy
Lee
810-555-2114
288-555-7553
3,387
Gerald
Williams
718-555-2120
684-555-3832