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
2,002,415
Gerald
Gomez
405-555-2700
858-555-1211
2,002,416
Samantha
Graham
404-555-4585
471-555-5080
2,002,417
Douglas
Gomez
372-555-2133
370-555-2147
2,002,418
Matthew
Gonzalez
566-555-7076
577-555-4710
2,002,419
Sarah
Murray
345-555-6737
371-555-8870
2,002,420
Kathleen
Bailey
422-555-6866
325-555-4548
2,002,421
Joshua
Johnson
767-555-1212
523-555-6540
2,002,422
Nicholas
Murray
433-555-5864
707-555-3076