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
19,407
Abner
Ortiz
831-555-4645
873-555-1836
19,408
Joshua
Gonzalez
542-555-8031
340-555-3304
19,409
Larry
Cruz
231-555-2401
571-555-1068
19,410
Sarah
Davis
380-555-2042
702-555-8051
19,411
Abner
Nelson
511-555-3030
638-555-5324
19,412
Keith
Brown
364-555-8247
315-555-3342
19,413
Sandra
Allen
230-555-8660
435-555-8168
19,414
Emily
Hall
578-555-2588
731-555-8377