Issue 20 in jquery-validation-ui-plugin: Add *Resource.groovy definitions to use with the resources plugin

10 views
Skip to first unread message

jquery-valida...@googlecode.com

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

New issue 20 by bksavi...@gmail.com: Add *Resource.groovy definitions to
use with the resources plugin
http://code.google.com/p/jquery-validation-ui-plugin/issues/detail?id=20

Right now the plugin does not integrate with the resources plugin very
easily - I ended up creating my own resources definition. Simply create a
JQueryValidationUIResources.groovy file in grails-app/conf, and add
something like this:

'jquery-validation-ui' {
resource id:"validate", url:[plugin:'jqueryValidationUi',
dir:'js/jquery-validation-ui', file:'jquery.validate.min.js']
resource id:"qtip", url:[plugin:'jqueryValidationUi',
dir:'js/jquery-validation-ui', file:'jquery.qtip.min.js']
resource id:"validation-methods", url:[plugin:'jqueryValidationUi',
dir:'js/jquery-validation-ui', file:'grails-validation-methods.js']
resource id:"qtip-css", url:[plugin:'jqueryValidationUi',
dir:'css/jquery-validation-ui', file:'jquery.qtip.min.css']
}

Then someone who is using the resources plugin can use it easily by
<r:module require="jquery-validation-ui" /> at the top of their page. Make
sure to remember to assign IDs so that we can override the css and js files
if we need to.

Thanks!

jquery-valida...@googlecode.com

unread,
Jan 4, 2012, 12:24:01 AM1/4/12
to jquery-valida...@googlegroups.com

Comment #1 on issue 20 by limchee...@vobject.com: Add *Resource.groovy

Sorry for late response and creating these issue reports. I am busy on
something else at the moment, would you be interested to join the project
to work on issues reported by you?

jquery-valida...@googlecode.com

unread,
Jan 4, 2012, 1:17:44 AM1/4/12
to jquery-valida...@googlegroups.com

Comment #2 on issue 20 by limchee...@vobject.com: Add *Resource.groovy

Typo. Thanks for creating these issue reports.

jquery-valida...@googlecode.com

unread,
Jan 4, 2012, 10:23:30 AM1/4/12
to jquery-valida...@googlegroups.com

Comment #3 on issue 20 by bksavi...@gmail.com: Add *Resource.groovy

Absolutely, although I prefer using github so would want to transfer it to
there :) But that would be just fine if I could join the project. Do you
control that I'm guessing?

jquery-valida...@googlecode.com

unread,
Jan 4, 2012, 9:59:43 PM1/4/12
to jquery-valida...@googlegroups.com

Comment #4 on issue 20 by limchee...@vobject.com: Add *Resource.groovy

Great!

Yes, I am the project owner.

To ease your work, I moved the source repos of the project to github at
https://github.com/limcheekin/jquery-validation-ui

Wish to see you there!

Reply all
Reply to author
Forward
0 new messages