You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Ashwin Prabhu (JIRA)" <de...@myfaces.apache.org> on 2014/07/23 15:30:39 UTC
[jira] [Updated] (TRINIDAD-2495) af:convertnumber: currencysymbol
and currencycode support is broken
[ https://issues.apache.org/jira/browse/TRINIDAD-2495?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ashwin Prabhu updated TRINIDAD-2495:
------------------------------------
Status: Patch Available (was: Open)
> af:convertnumber: currencysymbol and currencycode support is broken
> -------------------------------------------------------------------
>
> Key: TRINIDAD-2495
> URL: https://issues.apache.org/jira/browse/TRINIDAD-2495
> Project: MyFaces Trinidad
> Issue Type: Bug
> Components: Components
> Affects Versions: 2.1.0-core
> Reporter: Ashwin Prabhu
> Original Estimate: 24h
> Remaining Estimate: 24h
>
> af:convertNumber's CurrencySymbol and currencyCode attributes on af:convertNumber are no longer functioning as documented. Specifying any value other than the locale default for the currencyCode/Symbol generates a client side error.
> For ex:
> <af:inputText label="type=number" value="#{validate.long}" id="it1" >
> <af:convertNumber type="currency" currencySymbol="@"/>
> </af:inputText>
> The above will throw the following error on the client side:
> Error: The currency format is incorrect.
> Enter a currency in the same format as this example: $10,250.00
> Ditto for currencyCode.
> Similar problems exist on the server side converter too. The DecimalFormatter is not made aware of the custom currency and hence chokes on anything non-standard for currency code/symbol.
--
This message was sent by Atlassian JIRA
(v6.2#6252)