Error executing tag <jqvalui:renderValidationScript>: No such property: request

113 views
Skip to first unread message

Marc Baiges

unread,
Sep 17, 2012, 4:18:34 PM9/17/12
to jquery-valida...@googlegroups.com
Hi all,
I'm quite new to Grails and obviously new to the plugin, so excuse me if I'm asking for something really stupid here.

I tried installing and using the v1.4 of the plugin in my v2.1.0 Grails app (as described here), but when I try to render the validation script tag, my app crashes with:

 

Error 500: Internal Server Error

URI
/backoffice/user/edit/1
Class
groovy.lang.MissingPropertyException
Message
No such property: request for class: org.grails.jquery.validation.ui.JqueryValidationService


I think that due:

Around line 348 of grails-app/services/org/grails/jquery/validation/ui/JqueryValidationService.groovy

345: break

 346: case "unique":

 347: case "validator":

 348: javaScriptConstraintCode = createRemoteJavaScriptConstraints(request.contextPath, constraintName, constrainedProperty.owningClass.name, constrainedProperty.propertyName)

 349: break

 350: }

 351:} else { 


 Is anybody else experiencing the same?

As I said, I'm new to Grails, so this error message makes quite sense to me because I don't see how you should be able to access the request from this JqueryValidationService class, but I guess that it should get injected somehow? Is it a configuration problem?


thanks,


Marc Baiges Camprubí


Christian

unread,
Oct 11, 2012, 4:43:01 PM10/11/12
to jquery-valida...@googlegroups.com
I have the same configuration and I'm getting the same exception.

Chee Kin Lim

unread,
Oct 13, 2012, 6:46:15 AM10/13/12
to jquery-valida...@googlegroups.com
I think it is a bug. Please report the issue at https://github.com/limcheekin/jquery-validation-ui/issues

Thanks.

Best regards,
Chee Kin 

--
 
 
 

Reply all
Reply to author
Forward
0 new messages