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
113,394
Virginia
Gonzalez
880-555-1181
487-555-1603
113,395
Gerald
Smiith
502-555-4230
461-555-3525
113,396
Samuel
Hall
615-555-5227
682-555-1006
113,397
Samuel
Gomez
284-555-3108
202-555-8620
113,398
Jacob
Brown
880-555-2426
286-555-8582
113,399
Jack
Donahue
603-555-1274
844-555-7633
113,400
Matthew
Baker
377-555-1258
727-555-6558
113,401
Jose
Rose
850-555-3448
801-555-8342