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
72,820
Christopher
Ortiz
582-555-3185
226-555-3742
72,821
Michael
Bailey
285-555-8720
625-555-2442
72,822
Jose
Wilson
601-555-6400
670-555-4152
72,823
Brianna
Bailey
364-555-7330
421-555-7806
72,824
Maria
Wilson
685-555-2367
648-555-5430
72,825
Christopher
Davis
727-555-7756
362-555-2735
72,826
Sandra
Jones
774-555-4013
606-555-7378
72,827
Samantha
Davis
727-555-8518
720-555-7114