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,811,234
Gerald
Lee
502-555-5850
357-555-6588
3,811,235
Nicholas
Jones
518-555-6106
653-555-4666
3,811,236
Michael
Ortiz
623-555-5414
642-555-6126
3,811,237
Jacob
Williams
601-555-3360
673-555-3220
3,811,238
Debra
Ortiz
451-555-8615
787-555-4471
3,811,239
Larry
Gomez
321-555-8614
430-555-8738
3,811,240
Abby
Fisher
342-555-8687
355-555-5806
3,811,241
Matthew
Davis
624-555-5705
552-555-7244