You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Howard M. Lewis Ship (JIRA)" <de...@tapestry.apache.org> on 2008/03/18 17:29:24 UTC
[jira] Assigned: (TAPESTRY-2271) Grid's _rowsPerPage is no longer
readable & writable due to attached @Property.
[ https://issues.apache.org/jira/browse/TAPESTRY-2271?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Howard M. Lewis Ship reassigned TAPESTRY-2271:
----------------------------------------------
Assignee: Howard M. Lewis Ship
> Grid's _rowsPerPage is no longer readable & writable due to attached @Property.
> -------------------------------------------------------------------------------
>
> Key: TAPESTRY-2271
> URL: https://issues.apache.org/jira/browse/TAPESTRY-2271
> Project: Tapestry
> Issue Type: Bug
> Components: Core Components
> Affects Versions: 5.0.11
> Environment: N/A
> Reporter: Adam Zimowski
> Assignee: Howard M. Lewis Ship
> Fix For: 5.0.12
>
> Original Estimate: 1h
> Remaining Estimate: 1h
>
> Application code which makes use of Grid's rowsPerPage property at compile time no longer compiles because the _rowsPerPage field has been converted to use new @Property annotation:
> /**
> * The number of rows of data displayed on each page. If there are more rows than will fit, the Grid will divide up
> * the rows into "pages" and (normally) provide a pager to allow the user to navigate within the overall result
> * set.
> */
> @Parameter("25")
> @Property
> private int _rowsPerPage;
> In this case it is legitimate expectation to have old-fashioned getter and setters so that pages & components which use Grid internally can still read and write this property. For example:
> @Component
> private Grid _grid;
> public void foo() {
> _grid.getRowsPerPage(); // do something with this value
> }
> Similarly, there are few other Grid fields annotated with @Property which may also be considered as candidates for classic getters and setters. I don't have a need for those personally, but others may:
> /**
> * Used to store the current object being rendered (for the current row). This is used when parameter blocks are
> * provided to override the default cell renderer for a particular column ... the components within the block can
> * use the property bound to the row parameter to know what they should render.
> */
> @Parameter
> @Property
> private Object _row;
> /**
> * The CSS class for the tr element for each data row. This can be used to highlight particular rows, or cycle
> * between CSS values (for the "zebra effect"). If null or not bound, then no particular CSS class value is used.
> */
> @Parameter(cache = false)
> @Property(write = false)
> private String _rowClass;
> /**
> * CSS class for the <table> element. In addition, informal parameters to the Grid are rendered in the table
> * element.
> */
> @Parameter(name = "class", defaultPrefix = TapestryConstants.LITERAL_BINDING_PREFIX, value = "t-data-grid")
> @Property(write = false)
> private String _tableClass;
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org