[richfaces-issues] [JBoss JIRA] Commented: (RF-4366) InputNumberSpinner: Locale will not be used for number input

Gerrit Brehmer (JIRA) jira-events at lists.jboss.org
Tue Sep 2 01:59:38 EDT 2008


    [ https://jira.jboss.org/jira/browse/RF-4366?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12427714#action_12427714 ] 

Gerrit Brehmer commented on RF-4366:
------------------------------------

I look into the sourcecode: I think java changes in RangedInput should not be so expensive, but i don't know how much is it to change the javascript code.

So the only workaround at this time is to register my own converter and allow both locales at the same time ("." and ","), because javascript code always generates ".". Right?

> InputNumberSpinner: Locale will not be used for number input
> ------------------------------------------------------------
>
>                 Key: RF-4366
>                 URL: https://jira.jboss.org/jira/browse/RF-4366
>             Project: RichFaces
>          Issue Type: Bug
>    Affects Versions: 3.2.1
>         Environment: Firefox 3.0.1
>            Reporter: Gerrit Brehmer
>            Assignee: Nick Belaevski
>            Priority: Critical
>             Fix For: Future
>
>
> Hi,
> if i want to display a number with 1 fraction digit (like with f:convertNumber) and set step to "0.5" it will always use the english notation "." for output, but jsf use the locale (e.g. de) and convert my number "5.5" -> "55" before setting to my backing bean. And if i want to write the german notation into the input field with "," the javascript i think will drop my fraction digits before posting values. if I use "en" locale all functions properly.
> Bye

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the richfaces-issues mailing list