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
            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


Reply via email to