Issue 19 in jquery-validation-ui-plugin: Allow overriding of submitHandler in generated validation block

15 views
Skip to first unread message

jquery-valida...@googlecode.com

unread,
Dec 31, 2011, 11:17:09 AM12/31/11
to jquery-valida...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 19 by bksavi...@gmail.com: Allow overriding of submitHandler in
generated validation block
http://code.google.com/p/jquery-validation-ui-plugin/issues/detail?id=19

I have need to override the submitHandler for the validation so that the
form is submitted via ajax instead of a typical submit. I have added some
code to do this, but it is very simple - in the generate validation code
taglib, add something like:

def submitHandler = attrs.remove("submitHandler")

and then when you generate the validation({... code, put in:

...
${submitHandler?'submitHandler: '+submitHandler+',':''},
...

I'm using the latest version of jquery validation ui on grails 2.0.0, but
the grails version doesn't matter. For now I've recreated the taglib with
the code above so that I can use ajax form submission.

Reply all
Reply to author
Forward
0 new messages