org.apache.tapestry5.corelib.components.GridRows

Renders out a series of rows within the table. Inside a org.apache.tapestry5.corelib.components.Form, a series of row index numbers are stored into the form ( ). This is not ideal ... in a situation where the data set can shift between the form render and the form submission, this can cause unexpected results, including applying changes to the wrong objects.

[JavaDoc]

Component Parameters

NameTypeFlagsDefaultDefault PrefixDescription
columnIndexintNOT Allow NullpropOptional output parameter that stores the current column index.
currentPageintRequired, NOT Allow NullpropThe current page number within the available pages (indexed from 1).
encoderorg.apache.tapestry5.PrimaryKeyEncoderNOT Allow NullpropChanges how state is recorded into the form to store the for each row (rather than the index), and restore the from the primary keys.
gridModelorg.apache.tapestry5.grid.GridModelNOT Allow NullcomponentResources.containerpropObject that provides access to the bean and data models used to render the Grid.
leanbooleanNOT Allow NullpropIf true, then the CSS class on each TD cell will be omitted, which can reduce the amount of output from the component overall by a considerable amount. Leave this as false, the default, when you are leveraging the CSS to customize the look and feel of particular columns.
overridesorg.apache.tapestry5.PropertyOverridesRequired, NOT Allow NullpropWhere to search for property override blocks.
rowObjectRequired, NOT Allow NullpropThe current row being rendered, this is primarily an output parameter used to allow the Grid, and the Grid's container, to know what object is being rendered.
rowClassStringNOT Cached, NOT Allow NullpropParameter used to set the CSS class for each row (each tr element) within the tbody). This is not cached, so it will be recomputed for each row.
rowIndexintNOT Allow NullpropOptional output parameter (only set during rendering) that identifies the current row index. This is the index on the page (i.e., always numbered from zero) as opposed to the row index inside the org.apache.tapestry5.grid.GridDataSource.
rowsPerPageintRequired, NOT Allow NullpropNumber of rows displayed on each page. Long result sets are split across multiple pages.
volatilebooleanNOT Allow NullpropIf true and the Loop is enclosed by a Form, then the normal state saving logic is turned off. Defaults to false, enabling state saving logic within Forms.

Back to index