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

StringResourceModel interpolation in resource key is broken

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.5.7
    • Fix Version/s: 1.5.8, 6.0.0
    • Component/s: wicket
    • Labels:
      None

      Description

      Having:

      new StringResourceModel("details.disabled.${disabled}", this.model)

      ... and isDisabled returns a boolean naturally.

      In Wicket 1.5, the StringResourceModel now does some heavier processing on the key, thus the boolean value is converted first using the registered converter and then inserted into the resource key; resulting in keys like "details.disabled.yes" or "details.disabled.ja" etc which are even language dependent!

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: