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
559
Douglas
Fisher
323-555-4334
210-555-4183
560
Douglas
Gomez
784-555-5212
357-555-6610
561
Willie
Wilson
367-555-2354
787-555-6028
562
Joshua
Rose
875-555-4544
473-555-2571
563
Douglas
Graham
260-555-4077
318-555-2002
564
Jack
Clark
214-555-6205
677-555-5521
565
Jack
Bailey
802-555-2838
828-555-7156
566
Douglas
Rose
288-555-5573
383-555-4322