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
311
Abby
Johnson
460-555-4155
362-555-2274
312
Hailey
Allen
504-555-8840
637-555-4245
313
Keith
Davis
478-555-6626
534-555-7325
314
Samuel
Smiith
734-555-6125
331-555-2046
315
Samuel
Rose
871-555-1816
421-555-5684
316
Brianna
Williams
200-555-5622
716-555-7447
317
Willie
Davis
264-555-3471
408-555-4224
318
Matthew
Wilson
752-555-8346
211-555-5207