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
3,474,817
Sandra
Black
768-555-1281
747-555-7370
3,474,818
Maria
Jones
655-555-7381
641-555-2886
3,474,819
Linda
Murray
823-555-8526
768-555-1857
3,474,820
Gerald
Black
743-555-8257
544-555-4164
3,474,821
Christopher
Cruz
236-555-7660
837-555-6311
3,474,822
Joshua
Wilson
353-555-8417
778-555-4551
3,474,823
Willie
Wilson
401-555-5165
686-555-7172
3,474,824
Nicholas
Nelson
273-555-8413
453-555-6803