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
705,375
Jose
Black
636-555-4571
804-555-5763
705,376
Kathleen
Black
667-555-3055
268-555-4775
705,377
Jose
Smiith
438-555-7540
315-555-8023
705,378
Linda
Johnson
406-555-7677
617-555-2284
705,379
Maria
Cruz
875-555-2850
477-555-6483
705,380
Kathleen
Donahue
646-555-2772
237-555-5236
705,381
Kathleen
Smiith
514-555-2263
635-555-6315
705,382
Joshua
Rose
856-555-6433
242-555-2134