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
342
Gerald
Moore
523-555-4411
688-555-5280
343
Pamela
Baker
670-555-2701
872-555-1335
344
Douglas
Baker
488-555-3660
316-555-2221
345
Abner
Davis
441-555-8782
444-555-8766
346
Matthew
Allen
574-555-8176
451-555-4584
347
Virginia
Smiith
230-555-2200
210-555-7680
348
Hailey
Johnson
580-555-8844
506-555-5737
349
Michael
Davis
762-555-7432
434-555-8806