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
590
Hailey
Ortiz
578-555-4510
272-555-7250
591
Abby
Smiith
737-555-2656
283-555-8737
592
Christopher
Smiith
646-555-5231
763-555-6232
593
Debra
Bailey
706-555-6872
458-555-3724
594
Brianna
Rose
843-555-6441
254-555-7563
595
Linda
Murray
640-555-5320
656-555-5013
596
Gerald
Brown
842-555-3573
488-555-2173
597
Timothy
Smiith
237-555-2775
846-555-8251