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

PropertyVariableInterpolator add support for IConverterLocator (patch included)

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment