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
3,527,106
Douglas
Allen
567-555-6548
530-555-6746
3,527,107
Samantha
Nelson
213-555-3834
464-555-8855
3,527,108
Samantha
Wilson
388-555-1648
354-555-1004
3,527,109
Timothy
Fisher
325-555-3325
380-555-7111
3,527,110
Kathleen
Cruz
415-555-1047
280-555-2880
3,527,111
Pamela
Hall
644-555-7053
437-555-4636
3,527,112
Willie
Clark
364-555-1871
626-555-6167
3,527,113
Douglas
Smiith
737-555-3363
467-555-5348