Ashwin Prabhu created TRINIDAD-2495:
---------------------------------------

             Summary: 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


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