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,999,368
Samuel
Moore
624-555-7118
343-555-6601
5,999,369
Virginia
Hall
746-555-2173
685-555-3580
5,999,370
Brianna
Jones
315-555-2124
656-555-8241
5,999,371
Sandra
Wilson
533-555-7603
421-555-1328
5,999,372
Sarah
Gomez
712-555-1825
228-555-6038
5,999,373
Linda
Allen
213-555-4876
645-555-4383
5,999,374
Gerald
Black
252-555-1771
755-555-4271
5,999,375
Linda
Bailey
778-555-7136
550-555-6154