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

Steve Eynon commented on TAP5-1677:
-----------------------------------

There are a number of ways I *could* set a global style (including the way I 
have done!) but from a client perspective I believe the easiest and most 
consistent way would be to override the default component parameter.

But I'm also aware this would set precedence to turn all T5 CSS names into 
symbol contributions, which would need to be referenced by component code and 
templates alike. As this is quite a bit of work (for arguably minor gain) I'm 
happy to let this one lie. 
                
> 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
>             Fix For: 5.3
>
>
> 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


Reply via email to