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
717,620
Sarah
Williams
282-555-3273
387-555-4240
717,621
Virginia
Murray
726-555-5207
606-555-3731
717,622
Gerald
Baker
488-555-1280
418-555-3844
717,623
Sarah
Nelson
326-555-7307
831-555-8756
717,624
Gerald
Smiith
507-555-5241
854-555-3708
717,625
Samantha
Murray
637-555-1674
366-555-6463
717,626
Samuel
Jones
555-555-7076
427-555-1800
717,627
Abner
Ortiz
636-555-8880
462-555-7637