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
42,285
Douglas
Moore
545-555-1857
614-555-3630
42,286
Nicholas
Nelson
214-555-6463
223-555-5267
42,287
Jose
Gonzalez
772-555-2737
324-555-5723
42,288
Jose
Brown
455-555-7504
653-555-6181
42,289
Gerald
Williams
306-555-4800
458-555-3046
42,290
Linda
Hall
427-555-2666
206-555-2667
42,291
Emily
Gonzalez
261-555-7353
860-555-2630
42,292
Michael
Davis
678-555-1418
203-555-4186