You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Sven Meier (JIRA)" <ji...@apache.org> on 2012/07/19 21:13:33 UTC
[jira] [Created] (WICKET-4662) StringResourceModel interpolation in
resource key is broken
Sven Meier created WICKET-4662:
----------------------------------
Summary: StringResourceModel interpolation in resource key is broken
Key: WICKET-4662
URL: https://issues.apache.org/jira/browse/WICKET-4662
Project: Wicket
Issue Type: Bug
Components: wicket
Affects Versions: 1.5.7
Reporter: Sven Meier
Assignee: Sven Meier
Priority: Minor
Fix For: 6.0.0, 1.5.8
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!
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Resolved] (WICKET-4662) StringResourceModel interpolation
in resource key is broken
Posted by "Sven Meier (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WICKET-4662?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sven Meier resolved WICKET-4662.
--------------------------------
Resolution: Fixed
See WICKET-3753.
> StringResourceModel interpolation in resource key is broken
> -----------------------------------------------------------
>
> Key: WICKET-4662
> URL: https://issues.apache.org/jira/browse/WICKET-4662
> Project: Wicket
> Issue Type: Bug
> Components: wicket
> Affects Versions: 1.5.7
> Reporter: Sven Meier
> Assignee: Sven Meier
> Priority: Minor
> Fix For: 6.0.0, 1.5.8
>
>
> 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!
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira