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
3,422,215
Virginia
Gomez
822-555-4533
857-555-3010
3,422,216
Sarah
Bailey
466-555-7006
351-555-1534
3,422,217
Christopher
Brown
683-555-8003
815-555-3540
3,422,218
Abby
Murray
724-555-6665
383-555-3277
3,422,219
Timothy
Smiith
284-555-2788
502-555-7065
3,422,220
Abner
Clark
554-555-6835
757-555-5243
3,422,221
Sandra
Nelson
746-555-8046
413-555-3155
3,422,222
Nicholas
Brown
604-555-1307
884-555-7830