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
706,088
Abner
Graham
706-555-1605
864-555-4076
706,089
Kathleen
Donahue
348-555-4053
270-555-3342
706,090
Michael
Baker
522-555-5870
667-555-2643
706,091
Sandra
Lee
632-555-3521
733-555-5353
706,092
Keith
Baker
433-555-1460
432-555-6336
706,093
Brianna
Ortiz
814-555-4827
766-555-7563
706,094
Michael
Bailey
636-555-4250
221-555-7737
706,095
Virginia
Graham
303-555-7381
835-555-2484