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
27,560
Matthew
Cruz
641-555-3066
350-555-2814
27,561
Abby
Smiith
883-555-3724
370-555-8373
27,562
Douglas
Graham
867-555-2532
657-555-5457
27,563
Nicholas
Murray
763-555-1200
824-555-5282
27,564
Sandra
Williams
558-555-1126
548-555-6415
27,565
Samantha
Gonzalez
430-555-1028
770-555-8241
27,566
Douglas
Moore
411-555-2347
668-555-8641
27,567
Samuel
Murray
523-555-7313
454-555-8850