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
5,356,088
Brianna
Allen
704-555-3341
700-555-4836
5,356,089
Gerald
Donahue
383-555-1562
661-555-7368
5,356,090
Matthew
Bailey
852-555-6142
320-555-2101
5,356,091
Nicholas
Moore
672-555-3800
371-555-4826
5,356,092
Sarah
Allen
536-555-8072
533-555-5415
5,356,093
Matthew
Smiith
634-555-4715
853-555-4671
5,356,094
Kathleen
Gonzalez
428-555-2641
615-555-1853
5,356,095
Pamela
Williams
242-555-8840
656-555-5504