IE Backward Compatibility

Tapestry Integration

The Pagination Component is available thanks to the Kawwa2Grid compononent, which has the same behavior (parameters ... ) as the Grid Component. The Kawwa2Grid component has 2 extra parameters in order to configure the pager.

Kawwa2Grid parameters

Name

Required

Java Type

Default Prefix

Default Value

Description

maxAge

false

int

literal

24 * 60 * 60 * 7

Max age in seconds for the number of row per page cookie.

navigatorOptions

false

String

literal

5,10,15,20

A String representing the different values of the select input, used for selecting the number of rows.

The Kawwa2Grid can also display automatically a filter form. You just need to set the criterium parameter. Tapestry will use this object to generate a form thanks to the BeanEditor component. When the form will be submitted,Tapestry will propagate 2 events :

KawwaEventsConstants.UPDATE_GRID_DATA_SOURCE

KawwaEventsConstants.RESET_GRID_DATA_SOURCE_FILTER

You can create method catching these events, and filter your data source. You can also configure 3 labels thanks to 3 others parameters :