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.