tapestry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Massimo Lusetti (Commented) (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (TAP5-1677) Use Symbols for Default Component Parameter Values
Date Wed, 05 Oct 2011 15:14:34 GMT

    [ https://issues.apache.org/jira/browse/TAP5-1677?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13121029#comment-13121029

Massimo Lusetti commented on TAP5-1677:

The date format would be nice but a common (mean common sense) value isn't so easy to choose.
Now is obtained from DateFormat.getInstance() as the DateFormat.MEDIUM format for the current
Locale, so the default is the one from the JDK.

I think is not so easy to find the right way to do this despite leaving it to the JDK.
> Use Symbols for Default Component Parameter Values
> --------------------------------------------------
>                 Key: TAP5-1677
>                 URL: https://issues.apache.org/jira/browse/TAP5-1677
>             Project: Tapestry 5
>          Issue Type: Improvement
>          Components: tapestry-core
>    Affects Versions: 5.3
>            Reporter: Steve Eynon
>            Assignee: Massimo Lusetti
>            Priority: Minor
> For example, the Grid component has the following:
> @Parameter("25")
> private int rowsPerPage;
> meaning if I wish for a pagination of 50 rows, I have to find all instances of the Grid
component in my application and manually add a "rowsPerPage" parameter.
> But if the parameter was defined as:
> @Parameter("symbol:tapestry.grid.rowsPerPage")
> private int rowsPerPage;
> then all I would need to do is override the symbol contribution and voilĂ , it changes
throughout the whole application.
> Other specific component defaults that would be nice are, the "update" parameter for
Zone et al (because the classic "yellow fade" doesn't work for everyone!) and a date format
for DateField.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira


View raw message