Uploaded image for project: 'Tapestry 5'
  1. Tapestry 5
  2. TAP5-1942

AbstractPropertyOutput should use Translator to render values

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Incomplete
    • 5.3.3
    • None
    • tapestry-core

    Description

      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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            saschadoemer Sascha Dömer
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: