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
655,341
Willie
Bailey
587-555-4774
717-555-7620
655,342
Willie
Hall
446-555-3418
701-555-8180
655,343
Keith
Donahue
542-555-8312
404-555-1454
655,344
Samantha
Bailey
630-555-6571
545-555-5363
655,345
Samuel
Graham
410-555-1872
581-555-5413
655,346
Debra
Cruz
632-555-4447
442-555-4143
655,347
Sandra
Graham
752-555-7142
545-555-4220
655,348
Pamela
Ortiz
514-555-3252
420-555-1051