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
2,543
Joshua
Allen
361-555-3226
677-555-3143
2,544
Virginia
Murray
283-555-2140
510-555-8287
2,545
Willie
Murray
521-555-1414
788-555-7724
2,546
Sarah
Williams
573-555-7724
448-555-6651
2,547
Abner
Murray
866-555-2432
251-555-2338
2,548
Gerald
Ortiz
301-555-5727
405-555-2856
2,549
Virginia
Nelson
200-555-7388
351-555-2013
2,550
Keith
Johnson
413-555-5584
464-555-1633