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

PropertyVariableInterpolator add support for IConverterLocator (patch included)

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.5-RC4
    • Fix Version/s: 1.5-RC5, 1.5.8, 6.0.0
    • Component/s: wicket
    • Labels:
      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

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

                Dates

                • Created:
                  Updated:
                  Resolved: