FYI: jquery-1.5.2 + custom validator constraint = no popup error message

20 views
Skip to first unread message

vogdb

unread,
May 18, 2011, 6:25:37 AM5/18/11
to JQuery Validation UI Plugin
Just for someone who will face it.

Solution: upgrade jquery to 1.6.1.
Problem: for example You've got domain class:

class Test {

String text

def validationSpring

static constraints = {
text(validator: {val, obj -> return
obj.validationSpring.alwaysFalse(val);})
}
}
and scaffold generated view for it

Ajax response got answer = "false", but browser didn't popup any
mesage. For other constraints works fine.

limcheekin

unread,
May 18, 2011, 6:31:02 AM5/18/11
to JQuery Validation UI Plugin
Hi there,

Thanks for report this issue with solution provided.

Best regards,
Chee Kin
Reply all
Reply to author
Forward
0 new messages