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
54,654
Timothy
Murray
873-555-4653
677-555-3372
54,655
Douglas
Williams
340-555-6663
614-555-3105
54,656
Sandra
Rose
273-555-4857
422-555-2046
54,657
Christopher
Gonzalez
511-555-2755
250-555-5781
54,658
Abby
Johnson
506-555-5375
547-555-3737
54,659
Douglas
Moore
870-555-4366
420-555-7841
54,660
Maria
Nelson
754-555-6472
521-555-6386
54,661
Gerald
Graham
580-555-3111
533-555-7875