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
38,503
Joshua
Bailey
620-555-2001
602-555-6285
38,504
Timothy
Clark
522-555-5702
453-555-2840
38,505
Jack
Cruz
752-555-8736
378-555-1086
38,506
Joshua
Lee
561-555-1808
347-555-7368
38,507
Jack
Nelson
505-555-1647
318-555-3826
38,508
Jacob
Bailey
841-555-7171
611-555-2184
38,509
Maria
Smiith
420-555-5020
618-555-2676
38,510
Emily
Graham
678-555-6471
722-555-8631