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
1,464,565
Emily
Hall
470-555-7613
842-555-5038
1,464,566
Debra
Gonzalez
412-555-4087
266-555-5705
1,464,567
Gerald
Brown
828-555-4206
546-555-3273
1,464,568
Emily
Bailey
264-555-6475
608-555-6045
1,464,569
Emily
Clark
677-555-5680
626-555-1685
1,464,570
Larry
Jones
242-555-6033
725-555-7006
1,464,571
Brianna
Jones
401-555-6632
584-555-3111
1,464,572
Jacob
Williams
831-555-4288
713-555-5207