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
1,957,186
Michael
Nelson
610-555-8105
325-555-7042
1,957,187
Gerald
Smiith
786-555-2720
554-555-1451
1,957,188
Sarah
Black
517-555-6426
677-555-5365
1,957,189
Pamela
Hall
816-555-6146
381-555-4120
1,957,190
Timothy
Rose
685-555-6470
476-555-7781
1,957,191
Jacob
Wilson
460-555-5735
573-555-1855
1,957,192
Joshua
Fisher
578-555-6212
770-555-5164
1,957,193
Emily
Allen
858-555-1456
434-555-6076