Archive for the ‘quicktip’ Category

Grails pageScope variable in GSPs and TagLibraries

Tuesday, June 22nd, 2010

Grails pageScope variable is available to you in Tag Libraries and GSPs and contains a wealth of state information. For instance, you can set an attribute in the model in a controller and then reference it in a TagLibrary through the pageScope variable without having to pass it through ...

Grails Dependency Management – Setting the Ivy Proxy

Friday, June 18th, 2010

When dealing with corporate firewalls and proxy servers, dependency management can be a pain. With Grails 1.3.1 I recently encountered an issue resolving dependencies that were not in a maven central repository. I had already done 'grails set-proxy' and that seemed to do the trick for the majority ...

Grails Dependency Management – Excluding dependencies

Friday, May 28th, 2010

Sometimes you need finer control over the dependencies included in your build. In BuildConfig.groovy you can exclude dependent dependencies by using the 'excludes' keyword - for example: dependencies { runtime (group:'org.apache.tika', name:'tika-parsers', version:'0.7'){ ...