tapestry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sascha Dömer (JIRA) <j...@apache.org>
Subject [jira] [Created] (TAP5-1942) AbstractPropertyOutput should use Translator to render values
Date Wed, 30 May 2012 09:24:22 GMT
Sascha Dömer created TAP5-1942:

             Summary: AbstractPropertyOutput should use Translator to render values
                 Key: TAP5-1942
                 URL: https://issues.apache.org/jira/browse/TAP5-1942
             Project: Tapestry 5
          Issue Type: Improvement
          Components: tapestry-core
    Affects Versions: 5.3.3
            Reporter: Sascha Dömer
            Priority: Minor

The AbstractPropertyOutput uses the simple *.toString() representation for object rendering:

String text = value == null ? "" : value.toString();  // line 134 in AbstractPropertyOutput.java

This can be a good solution if there is no translator necessary. But in case you'd like to
render dates, formatted numbers or other custom output it would be nice, if the configured
translators have an effect at this point.

Of course the representation can be adjusted using a single block, but using the translator
for property output would be fitting really nice within the concepts.

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