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
24,026
Joshua
Gonzalez
254-555-8878
346-555-8627
24,027
Gerald
Clark
785-555-4304
878-555-8845
24,028
Emily
Cruz
238-555-1873
457-555-1511
24,029
Debra
Bailey
433-555-2026
218-555-6551
24,030
Jacob
Cruz
410-555-7731
200-555-1413
24,031
Maria
Smiith
763-555-7607
678-555-7576
24,032
Jacob
Murray
726-555-8723
712-555-6507
24,033
Willie
Black
206-555-6580
267-555-4425