[ 
https://issues.apache.org/jira/browse/TRINIDAD-2495?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14073591#comment-14073591
 ] 

Gabrielle Crawford commented on TRINIDAD-2495:
----------------------------------------------

At revision: 1613267

> 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
>             Fix For: 2.1.1-core
>
>         Attachments: TRINIDAD-2495.patch
>
>   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)

Reply via email to