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
168,238
Emily
Allen
404-555-5887
743-555-1757
168,239
Jose
Brown
514-555-1285
504-555-5211
168,240
Willie
Cruz
388-555-8243
871-555-3844
168,241
Jose
Wilson
437-555-7671
664-555-8667
168,242
Timothy
Murray
724-555-6046
340-555-3400
168,243
Gerald
Johnson
572-555-4544
257-555-4562
168,244
Christopher
Black
884-555-3316
806-555-2154
168,245
Virginia
Rose
538-555-2602
822-555-5401