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
3,474,166
Sandra
Black
212-555-7532
374-555-7864
3,474,167
Sarah
Cruz
537-555-7304
373-555-1640
3,474,168
Kathleen
Davis
274-555-7432
772-555-2728
3,474,169
Nicholas
Gonzalez
585-555-2403
684-555-6575
3,474,170
Timothy
Hall
426-555-6804
467-555-6577
3,474,171
Larry
Rose
247-555-1475
825-555-2287
3,474,172
Nicholas
Williams
850-555-8435
837-555-5438
3,474,173
Willie
Johnson
456-555-7647
642-555-3673