Issue 17 in jquery-validation-ui-plugin: Can`t validate Float or Double fields with ',' instead of '.'

79 views
Skip to first unread message

jquery-valida...@googlecode.com

unread,
Oct 6, 2011, 12:34:32 AM10/6/11
to jquery-valida...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

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

jquery-valida...@googlecode.com

unread,
Oct 6, 2011, 1:20:10 AM10/6/11
to jquery-valida...@googlegroups.com

Comment #1 on issue 17 by limchee...@vobject.com: Can`t validate Float or

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?


jquery-valida...@googlecode.com

unread,
Oct 6, 2011, 1:32:13 AM10/6/11
to jquery-valida...@googlegroups.com

Comment #2 on issue 17 by celoferr...@hotmail.com: Can`t validate Float or

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


jquery-valida...@googlecode.com

unread,
Oct 6, 2011, 1:58:21 AM10/6/11
to jquery-valida...@googlegroups.com
Updates:
Status: Accepted

Comment #3 on issue 17 by limchee...@vobject.com: Can`t validate Float or

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?


jquery-valida...@googlecode.com

unread,
Oct 11, 2011, 9:05:01 AM10/11/11
to jquery-valida...@googlegroups.com

Comment #4 on issue 17 by celoferr...@hotmail.com: Can`t validate Float or

Sorry for taking to long to answer.

Yes, it's the same as the german number format

jquery-valida...@googlecode.com

unread,
Oct 11, 2011, 11:11:21 AM10/11/11
to jquery-valida...@googlegroups.com

Comment #5 on issue 17 by limchee...@vobject.com: Can`t validate Float or

It is fine. Do you know which countries was using this number format
besides Germany and Brazil?


jquery-valida...@googlecode.com

unread,
Oct 11, 2011, 11:15:23 AM10/11/11
to jquery-valida...@googlegroups.com

Comment #6 on issue 17 by limchee...@vobject.com: Can`t validate Float or

How about date format? Anything wrong with the date format, please refer to
http://docs.jquery.com/Plugins/Validation/Methods/dateDE

jquery-valida...@googlecode.com

unread,
Oct 13, 2011, 12:25:43 AM10/13/11
to jquery-valida...@googlegroups.com

Comment #7 on issue 17 by celoferr...@hotmail.com: Can`t validate Float or

I dont know which other countries use this.

I guess theres nothing wrong with the date format, at least in my tests
here.


jquery-valida...@googlecode.com

unread,
Oct 13, 2011, 9:16:53 PM10/13/11
to jquery-valida...@googlegroups.com

Comment #8 on issue 17 by limchee...@vobject.com: Can`t validate Float or

Noted. Thanks for confirmation

jquery-valida...@googlecode.com

unread,
Oct 13, 2011, 9:54:15 PM10/13/11
to jquery-valida...@googlegroups.com
Updates:
Status: Fixed

Comment #9 on issue 17 by limchee...@vobject.com: Can`t validate Float or

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

jquery-valida...@googlecode.com

unread,
Oct 14, 2011, 8:35:12 AM10/14/11
to jquery-valida...@googlegroups.com

Comment #10 on issue 17 by celoferr...@hotmail.com: Can`t validate Float or

Thaanks, will try it out today night and then I'll comment here.

cheers

jquery-valida...@googlecode.com

unread,
Oct 25, 2011, 11:29:39 PM10/25/11
to jquery-valida...@googlegroups.com

Comment #11 on issue 17 by limchee...@vobject.com: Can`t validate Float or

Hi Marcelo Ferraz,

May I know is the fix working?

Thanks.

jquery-valida...@googlecode.com

unread,
Jan 15, 2012, 1:40:11 AM1/15/12
to jquery-valida...@googlegroups.com
Updates:
Owner: limchee...@vobject.com

Comment #12 on issue 17 by limchee...@vobject.com: Can`t validate Float or

To be released in 1.2.4

Reply all
Reply to author
Forward
0 new messages