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
6,449
Joshua
Smiith
806-555-1436
672-555-7645
6,450
Kathleen
Williams
410-555-3704
343-555-5311
6,451
Timothy
Graham
575-555-8418
317-555-4506
6,452
Timothy
Cruz
740-555-3804
810-555-5315
6,453
Kathleen
Wilson
778-555-7111
514-555-1217
6,454
Maria
Black
476-555-5703
554-555-6084
6,455
Michael
Murray
217-555-3775
738-555-3564
6,456
Gerald
Lee
427-555-1021
733-555-3105