[ https://issues.apache.org/jira/browse/TRINIDAD-2144?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13197296#comment-13197296 ]
Kentaro Kinebuchi commented on TRINIDAD-2144: --------------------------------------------- Added a patch which implements option (2) mentioned by Yee-Wah. > 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