You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Kentaro Kinebuchi (Updated) (JIRA)" <de...@myfaces.apache.org> on 2012/01/31 22:41:59 UTC
[jira] [Updated] (TRINIDAD-2144) NumberConverter formatHint does
not consider trinidad-config.xml settings for decimal-separator,
number-grouping-separator
[ https://issues.apache.org/jira/browse/TRINIDAD-2144?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Kentaro Kinebuchi updated TRINIDAD-2144:
----------------------------------------
Status: Patch Available (was: Open)
> NumberConverter formatHint does not consider trinidad-config.xml settings for decimal-separator, number-grouping-separator
> --------------------------------------------------------------------------------------------------------------------------
>
> Key: TRINIDAD-2144
> URL: https://issues.apache.org/jira/browse/TRINIDAD-2144
> Project: MyFaces Trinidad
> Issue Type: Bug
> Components: Components
> Affects Versions: 2.0.0-core
> Reporter: Yee-Wah Lee
> Priority: Minor
>
> 1. In trinidad-config.xml, set the following parameters
> <decimal-separator>','</decimal-separator>
> <number-grouping-separator>'\''</number-grouping-separator>
> 2. Run convertValidate.jspx from the demo. The number is correctly formatted, e.g. 2'00
> <tr:inputText value="#{converterValidator.bigDecimalValue}" >
> <f:convertNumber groupingUsed="false" pattern="#,##0.00"/>
> </tr:inputText>
> 3. Change the number into something invalid and submit the page. The error message just shows the pattern without the locale-specific separators substituted into the decimal (.) and number-grouping(,) separators, e.g. The format of the number must match this pattern: #,##0.00. This is misleading since the user must substitute the correct separators from trinidad-config.xml before parsing will succeed.
--
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