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
1,958,085
Joshua
Ortiz
444-555-4306
788-555-2571
1,958,086
Timothy
Murray
538-555-1258
630-555-8024
1,958,087
Brianna
Gomez
532-555-5570
606-555-6538
1,958,088
Sarah
Allen
858-555-6386
674-555-3554
1,958,089
Abby
Black
615-555-2678
324-555-4573
1,958,090
Keith
Nelson
635-555-4628
467-555-6740
1,958,091
Douglas
Black
563-555-8625
735-555-4318
1,958,092
Sandra
Ortiz
517-555-4066
578-555-3175