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
748,558
Jose
Nelson
250-555-4487
220-555-2851
748,559
Pamela
Clark
526-555-5451
570-555-8702
748,560
Abby
Murray
202-555-2630
552-555-6784
748,561
Sarah
Rose
663-555-2785
882-555-6211
748,562
Timothy
Davis
416-555-3085
555-555-2123
748,563
Gerald
Hall
454-555-3482
517-555-3222
748,564
Samuel
Gonzalez
755-555-7206
577-555-1287
748,565
Brianna
Donahue
255-555-4732
537-555-3423