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,799
Michael
Gonzalez
811-555-1435
887-555-5483
1,800
Pamela
Allen
567-555-7100
571-555-1413
1,801
Maria
Allen
376-555-1023
604-555-8247
1,802
Willie
Moore
416-555-2562
787-555-1516
1,803
Matthew
Gonzalez
340-555-8268
870-555-5261
1,804
Nicholas
Cruz
664-555-7863
603-555-7033
1,805
Jacob
Wilson
241-555-2437
355-555-5855
1,806
Debra
Gomez
670-555-1006
753-555-5760