org.apache.tapestry.corelib.components.GridRows

Renders out a series of rows within the table. Inside a org.apache.tapestry.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
currentPageintRequiredpropThe current page number within the available pages (indexed from 1).
gridModelorg.apache.tapestry.grid.GridModelcomponentResources.containerpropObject that provides access to the bean and data models used to render the Grid.
leanbooleanpropIf 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.
rowObjectRequiredpropThe 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 CachedpropParameter 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.
rowsPerPageintRequiredpropNumber of rows displayed on each page. Long result sets are split across multiple pages.
volatilebooleanpropIf 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