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
44,455
Brianna
Jones
705-555-1022
547-555-4842
44,456
Abby
Donahue
518-555-2881
313-555-5606
44,457
Virginia
Rose
822-555-6171
373-555-6254
44,458
Samantha
Johnson
458-555-6266
328-555-2465
44,459
Douglas
Rose
827-555-6840
746-555-3328
44,460
Emily
Jones
300-555-8851
233-555-7137
44,461
Samuel
Gonzalez
474-555-5065
300-555-6175
44,462
Sarah
Murray
286-555-6878
608-555-8415