New issue 9 by sakthisa...@gmail.com: Validation matches [a-zA-Z]+ doesn't
support single character
http://code.google.com/p/jquery-validation-ui-plugin/issues/detail?id=9
What steps will reproduce the problem?
1. I validate in the domain class fields like this pattern matches:[a-zA-Z]+
2.In the client side the code was inject correctly. But the validation not
happening, if i give single character
3.If I turn of the javascript, the server accepts the input correctly
What is the expected output? What do you see instead?
Accept single character for the following pattern: [a-zA-Z]+ eg: A
What version of the product are you using? On what operating system?
Grails 1.3.5
jquery validation ui 1.1.1
OS : Linux
Linux sakthi 2.6.32-5-686 #1 SMP Tue Oct 19 14:40:34 UTC 2010 i686 GNU/Linux
Please provide any additional information below.
Comment #1 on issue 9 by limchee...@vobject.com: Validation matches
[a-zA-Z]+ doesn't support single character
http://code.google.com/p/jquery-validation-ui-plugin/issues/detail?id=9
Hi there,
Thanks for creating the issue. I spot the error, 1 character not accepted,
but 2 is OK.
Did you familiar with JavaScript RegEx? The code which perform validation is
this one: value.match(new RegExp(".[a-zA-Z]+$")), anything wrong with this
code?
Wish to hear from you soon!
Best regards,
Chee Kin
Noted. For time-being, you can do a quick fix yourself, the code is at line
27 of grails-validation-methods.js.
Regards,
Chee Kin
Noted. Thanks for information and the fix. I am very busy now, I will test
it out later.
Best regards,
Chee Kin
In the java.lang.Bigdecimal also thrown an error for matches and range.
Please check the code and rectify it.
Thank you for quick response
May I have the error message? Thanks
Comment #8 on issue 9 by limchee...@vobject.com: Validation matches
[a-zA-Z]+ doesn't support single character
http://code.google.com/p/jquery-validation-ui-plugin/issues/detail?id=9
(No comment was entered for this change.)