Mantis Bugtracker
  

Viewing Issue Advanced Details Jump to Notes ] View Simple ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0000931 [Resin] minor always 02-12-06 20:51 03-27-06 12:14
Reporter keithdfetterman View Status public  
Assigned To
Priority normal Resolution fixed Platform
Status closed   OS
Projection none   OS Version
ETA none Fixed in Version 3.0.19 Product Version 3.0.17
  Product Build
Summary 0000931: {0,number,xxxx} in MessageResources.properties not formatting number for Locale
Description When using parameter substition with patterns in MessageResources.properties file, numbers are not being formatted correctly for the Locale returned by the Web browser.

Here is detailed description of the problem:

In a JSP file, I used the following JSTL statement:

<fmt:message key="msg.key">
<fmt:param value="${param1}" />
</fmt:message>

In my MessageResources.properties file, I had the following message defined:
msg.key=A message with a number: {0,number,currency}

In my Web browser, I replaced the english (en) and United States languages (en_US), with Spanish (es) and Spain es_ES. I then restarted my Web browser.

The number above was formatted as US currency. It should have been formatted using a spanish format.

If I do the same with the JSTL statement <fmt:formatNumber type="currency" />, the number is formatted correctly.

This problem exists for other formats too, like {0,number}.
Steps To Reproduce
Additional Information
Attached Files

- Relationships

- Notes
(0000946)
ferg
03-27-06 12:14

jsp/1ca8
 

- Issue History
Date Modified Username Field Change
02-12-06 20:51 keithdfetterman New Issue
02-12-06 20:52 keithdfetterman Issue Monitored: keithdfetterman
03-27-06 12:14 ferg Note Added: 0000946
03-27-06 12:14 ferg Status new => closed
03-27-06 12:14 ferg Resolution open => fixed
03-27-06 12:14 ferg Fixed in Version  => 3.0.19


Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
30 total queries executed.
26 unique queries executed.
Powered by Mantis Bugtracker