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
773,281
Sandra
Jones
614-555-6253
405-555-6440
773,282
Samuel
Bailey
220-555-3511
801-555-7565
773,283
Virginia
Brown
707-555-5506
411-555-7174
773,284
Pamela
Allen
887-555-8480
500-555-7642
773,285
Abner
Williams
567-555-4780
401-555-6608
773,286
Nicholas
Smiith
338-555-3887
821-555-7760
773,287
Debra
Rose
824-555-1464
348-555-7367
773,288
Sandra
Lee
383-555-1472
288-555-1571