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
1,467,324
Hailey
Murray
604-555-5562
200-555-1470
1,467,325
Sarah
Rose
840-555-2052
481-555-6812
1,467,326
Abby
Murray
845-555-4556
367-555-6506
1,467,327
Abner
Williams
434-555-7412
735-555-2447
1,467,328
Keith
Williams
485-555-5844
255-555-5533
1,467,329
Samuel
Bailey
340-555-5431
773-555-3700
1,467,330
Joshua
Moore
236-555-5375
563-555-6571
1,467,331
Willie
Bailey
386-555-8855
382-555-8534