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
30,877
Abby
Moore
872-555-8135
543-555-6350
30,878
Abner
Allen
658-555-5641
241-555-8428
30,879
Debra
Black
285-555-1881
533-555-5415
30,880
Gerald
Murray
277-555-1744
317-555-6347
30,881
Samuel
Rose
701-555-7864
270-555-1414
30,882
Maria
Cruz
864-555-3465
754-555-6838
30,883
Matthew
Fisher
316-555-6728
381-555-6726
30,884
Samantha
Cruz
271-555-7537
611-555-3334