Archive for the ‘grails’ 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'){ ...

One week with WhenWorksForYou.com

Monday, July 13th, 2009

Last week I launched http://www.whenworksforyou.com, a new Grails website that lets you coordinate schedules with other people to find the best date for your next event. Our first week provided lots of great feedback from users. One of the biggest gripes was not being able to subscribe to ...

Grails, p6spy and Sql Profiler

Wednesday, June 17th, 2009

There are several ways to have Grails log SQL statements that Hibernate is sending to the database under the covers of GORM.  The first is the loggingSql flag in DataSource.groovy: loggingSql=true This will show you the prepared statement that Hibernate is generating, like this: select this_.id ...