[
https://issues.apache.org/jira/browse/MYFACES-1827?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Thomas Spiegl resolved MYFACES-1827.
------------------------------------
Resolution: Fixed
now it's also fixed in 1.2.3-SNAPSHOT
> MessageUtils don't handle MessageFormat substitution correctly with different
> Locale
> ------------------------------------------------------------------------------------
>
> Key: MYFACES-1827
> URL: https://issues.apache.org/jira/browse/MYFACES-1827
> Project: MyFaces Core
> Issue Type: Bug
> Affects Versions: 1.1.5
> Environment: Java 6+5, Myfaces 1.1.5
> Reporter: Veit Guna
> Assignee: Thomas Spiegl
> Fix For: 1.1.6-SNAPSHOT, 1.2.3-SNAPSHOT
>
> Attachments: MessageUtils.patch
>
>
> Using MessageUtils to generate FacesMessages from ResourceBundle like:
> my.message.key=Your current balance is {0,number,currency}
> Doesn't work out for other locales than the default one. Internally
> MessageUtils uses MessageFormat to do substitution. Due to wrong handling
> the given Locale won't be used correctly leading to wrong currency symbols
> and formatting in for example t:messages.
> The provided patch includes the fix, as well as two testcases to reproduce
> the problem.
> BTW: is there any JSF-API way to have resource bundle entries read via
> MessageFormat?
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.