myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yee-Wah Lee (JIRA)" <...@myfaces.apache.org>
Subject [jira] Commented: (TRINIDAD-1958) Client tr:numberConverter with type="currency" incorrectly handles arabic locale for positive values
Date Tue, 09 Nov 2010 22:02:23 GMT

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

Yee-Wah Lee commented on TRINIDAD-1958:
---------------------------------------

Need to confirm if the Arabic symbols for negative pre/suffix are indeed correct. 

That is, if I want to represent the value -9 in currency, this is correct:
en_US: ($9)
he_IL: -9 ??
ar_IW:  9 ?? -
where ?? are the currency symbols for the respective languages.

If the above is correct, although Hebrew and Arabic are both BiDi languages they represent
negative numbers differently (pre vs suffix) and the code would indeed need to change.


> Client tr:numberConverter with type="currency" incorrectly handles arabic locale for
positive values
> ----------------------------------------------------------------------------------------------------
>
>                 Key: TRINIDAD-1958
>                 URL: https://issues.apache.org/jira/browse/TRINIDAD-1958
>             Project: MyFaces Trinidad
>          Issue Type: Bug
>          Components: Components
>    Affects Versions: 1.2.13-core 
>            Reporter: Yee-Wah Lee
>            Priority: Minor
>
> 1. Use the following jspx, binding the value of the inputText to a positive integer.

>   <tr:inputText label="InputText Arabic" value="#{clientValidation.integer}" autoSubmit="true">
>           <tr:convertNumber type="currency" locale="ar_SA"/> 
>           </tr:inputText>
>           <tr:outputText value="Value submitted is #{clientValidation.integer}"/>
> 2. Run the jspx, it displays something like:
> 2ر.س.‏ 0
> 3. Modify just the numerical portion of the text and tab off: Get an Incorrect Format
error
> Enter a currency in the same format as this example: ر.س.‏ 10,250

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message