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
54,933
Jose
Clark
555-555-3828
220-555-4052
54,934
Samuel
Lee
450-555-2634
388-555-4487
54,935
Abner
Brown
853-555-4076
867-555-1550
54,936
Larry
Williams
560-555-3244
323-555-8514
54,937
Abby
Fisher
663-555-6101
578-555-5368
54,938
Hailey
Baker
677-555-4435
777-555-6216
54,939
Brianna
Wilson
877-555-3524
543-555-4240
54,940
Matthew
Murray
286-555-1323
680-555-5773