New issue 17 by celoferr...@hotmail.com: Can`t validate Float or Double
fields with ',' instead of '.'
http://code.google.com/p/jquery-validation-ui-plugin/issues/detail?id=17
What steps will reproduce the problem?
1. I try to save a field where the value type is double, but I need to save
it with ',' example: budget : 200,00, it only accepts values with '.', in
this case 200.00
How can I make it able to put ',' and pass the validation, im from Brazil
and we don't actually put '.' to these type of values.
What version of the product are you using? On what operating system?
latest. Mac Os X
I attached a file that reproduces the problem... Thanks
Thanks
Attachments:
sol.png 3.9 KB
Thanks for reporting this issue. I have no experience on storing decimal
point as "," instead of ".", may I know how Grails handle "," as decimal
point? What changes do you need to make in application settings?
Hi, and thanks for the quick answer.
Well, Grails handles it by the locale, so in my case its pt_BR so it
uses ',' in the other hand when im with en_US it uses the '.' as a
separator.
so for an example, if I put the value '200.00' when i'm on pt_BR, the value
saved will be '20000' (twenty thousand) and when I the value is '200,00'
the output is ok. When im on en_US the exact opposite happen, if i
put '200,00' the output will be '20000'.
I think the correct way is to handle by Locale, but its a big
implementation out there...maybe i could write down some code so It can
help me validate in this single project..
Thanks.
Marcelo Ferraz
Comment #3 on issue 17 by limchee...@vobject.com: Can`t validate Float or
Double fields with ',' instead of '.'
http://code.google.com/p/jquery-validation-ui-plugin/issues/detail?id=17
Hi Marcelo Ferraz,
You're welcome!
Is Brazil number formatting same with Germany as mentioned in here
http://msdn.microsoft.com/en-us/goglobal/bb688127?
Sorry for taking to long to answer.
Yes, it's the same as the german number format
It is fine. Do you know which countries was using this number format
besides Germany and Brazil?
How about date format? Anything wrong with the date format, please refer to
http://docs.jquery.com/Plugins/Validation/Methods/dateDE
I dont know which other countries use this.
I guess theres nothing wrong with the date format, at least in my tests
here.
Noted. Thanks for confirmation
Comment #9 on issue 17 by limchee...@vobject.com: Can`t validate Float or
Double fields with ',' instead of '.'
http://code.google.com/p/jquery-validation-ui-plugin/issues/detail?id=17
Try it out and let's me know whether it is working well for you at
http://jquery-validation-ui-plugin.googlecode.com/files/grails-jquery-validation-ui-1.2.3.zip
Thaanks, will try it out today night and then I'll comment here.
cheers
Hi Marcelo Ferraz,
May I know is the fix working?
Thanks.
Comment #12 on issue 17 by limchee...@vobject.com: Can`t validate Float or
Double fields with ',' instead of '.'
http://code.google.com/p/jquery-validation-ui-plugin/issues/detail?id=17
To be released in 1.2.4