You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Sascha Dömer (JIRA)" <ji...@apache.org> on 2012/05/30 11:24:22 UTC

[jira] [Created] (TAP5-1942) AbstractPropertyOutput should use Translator to render values

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