StringResourceModel does not escape interpolated properties -----------------------------------------------------------
Key: WICKET-1015 URL: https://issues.apache.org/jira/browse/WICKET-1015 Project: Wicket Issue Type: Bug Components: wicket Affects Versions: 1.2.6 Reporter: Ryan Crumley StringResourceModel does not escape single quotes from interpolated strings which causes unexpected behavior when using with message formatters. Consider the following string: mystring=This string contained ${property} and message formatter placeholders {0}. new StringResourceModel("mystring", component, model, new Object[] {"some string"}); ${property} = _resolved'property_ The following string is passed to MessageFormat: This string contained _resolved'property_ and message formatter placeholders {0}. This will cause MessageFormat to not replace {0} with the first parameter because it is waiting for another single quote to end the escaping. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.