Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.1.5
-
None
-
None
-
Java 6+5, Myfaces 1.1.5
Description
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?