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
21,980
Hailey
Nelson
407-555-5561
502-555-7201
21,981
Matthew
Brown
851-555-3277
200-555-1248
21,982
Christopher
Williams
631-555-5577
241-555-8633
21,983
Linda
Hall
248-555-6213
546-555-5437
21,984
Sarah
Bailey
230-555-7770
354-555-3524
21,985
Kathleen
Johnson
520-555-5381
268-555-3524
21,986
Samantha
Fisher
703-555-6876
327-555-8433
21,987
Pamela
Brown
304-555-3336
713-555-5138