Issue 11 in jquery-validation-ui-plugin: Type mismatch custom error message not working

9 views
Skip to first unread message

jquery-valida...@googlecode.com

unread,
Mar 16, 2011, 5:32:32 AM3/16/11
to jquery-valida...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 11 by Mehanath...@gmail.com: Type mismatch custom error message
not working
http://code.google.com/p/jquery-validation-ui-plugin/issues/detail?id=11

Type mismatch not showing message of Domain class specific

for example i am havin the following in the message.properties file

1) typeMismatch.java.lang.Integer=Property {0} must be a valid number
2) typeMismatch.Paper.numMrp=Mrp should be a valid integer

When client side validation is Executed validation message is (1)

Also when the same submit throws message (2) in server side validation
which is domain specific

Can we have the second message triggred for clientside also


jquery-valida...@googlecode.com

unread,
Mar 16, 2011, 6:20:48 AM3/16/11
to jquery-valida...@googlegroups.com
Updates:
Labels: -Type-Defect Type-Enhancement

Comment #1 on issue 11 by limchee...@vobject.com: Type mismatch custom

Hi there,

Thanks for creating the issue. It is more to enhancement instead of defect.

The plugin doesn't support type mismatch custom validation message due to I
unaware Grails did support it in server-side.

Would you consider contribute this feature to the plugin?

jquery-valida...@googlecode.com

unread,
Mar 16, 2011, 11:25:30 PM3/16/11
to jquery-valida...@googlegroups.com

Comment #2 on issue 11 by Mehanath...@gmail.com: Type mismatch custom error

Dear Limchee,

Our Team from chennai, India has made some modification in order for the
type mismatch to work

Also one more change in the js file for . valiation is one

I am attaching the plugin for ur reference so that u may check and update
the repository

Thanks
Mehanathen N

Attachments:
grails-jquery-validation-ui-1.1.1.zip 204 KB

jquery-valida...@googlecode.com

unread,
Mar 16, 2011, 11:51:36 PM3/16/11
to jquery-valida...@googlegroups.com

Comment #3 on issue 11 by limchee...@vobject.com: Type mismatch custom

Hi Mehanathen,

Thank you very much! So, you fixed this issue yourself?

Regards,
Chee Kin


jquery-valida...@googlecode.com

unread,
Mar 17, 2011, 12:09:43 AM3/17/11
to jquery-valida...@googlegroups.com

Comment #4 on issue 11 by Mehanath...@gmail.com: Type mismatch custom error

Yes But pls check it and update the repository once uploaded pls let me know


jquery-valida...@googlecode.com

unread,
Mar 17, 2011, 1:32:12 AM3/17/11
to jquery-valida...@googlegroups.com

Comment #5 on issue 11 by limchee...@vobject.com: Type mismatch custom

Noted. Thanks.

jquery-valida...@googlecode.com

unread,
Mar 18, 2011, 5:39:53 AM3/18/11
to jquery-valida...@googlegroups.com

Comment #6 on issue 11 by limchee...@vobject.com: Type mismatch custom

I look into your code shortly, I doubt your solution is working as
JQueryValidationUiTagLib.groovy always "return
messageSource.getMessage(code, [propertyName].toArray(), defaultMessage,
locale)" at line 584

jquery-valida...@googlecode.com

unread,
Mar 18, 2011, 11:05:50 AM3/18/11
to jquery-valida...@googlegroups.com
Updates:
Status: Fixed

Comment #7 on issue 11 by limchee...@vobject.com: Type mismatch custom

(No comment was entered for this change.)

Reply all
Reply to author
Forward
0 new messages