Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-3753

PropertyVariableInterpolator add support for IConverterLocator (patch included)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.5-RC4
    • 1.5-RC5, 1.5.8, 6.0.0
    • wicket
    • None

    Description

      Add support for IConverterLocator to PropertyVariableInterpolator (see patch) to work with known IConverter for properties.

      Sample code:
      getString("created", Model.of(item));

      properties:
      created=Item created at ${createDate} by ${user}.

      Currently createDate (and any other property) is always converted by toString() instead of respecting IConverter to get properties localized.

      Attachments

        1. converter.patch
          2 kB
          manthos

        Issue Links

          Activity

            People

              svenmeier Sven Meier
              manthos manthos
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: