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
656,519
Jack
Rose
310-555-7515
865-555-5056
656,520
Abner
Smiith
885-555-5717
604-555-8274
656,521
Abby
Bailey
342-555-6520
635-555-6157
656,522
Nicholas
Rose
307-555-3751
333-555-6446
656,523
Hailey
Smiith
303-555-2175
270-555-5570
656,524
Michael
Wilson
875-555-5416
566-555-8618
656,525
Emily
Moore
638-555-3617
454-555-1582
656,526
Sarah
Nelson
370-555-7321
651-555-6086