Grails 2.0.1: setProvider

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Grails 2.0.1: setProvider

Konstantyn Smirnov
This post was updated on .
Hi all,

I upgraded my project to from 1.3.7 to 2.0.1. Now I'm experiencing difficulties with JS libraries.

I'm using prototype (as plugin). On every page, where g.remoteSomething is used, I need to put
<g:setProvider library="prototype"/>
otherwise I'm getting "No javascript provider is configured"-error.

Defining this in the layouts/main.gsp is ignored.

Are there any ways to specify the JS-provider for the whole application, so that I don't need to repeat it on every page?

TIA