Archive for the ‘grails’ Category
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 ...
Posted in grails, quicktip | Comments Off
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 ...
Posted in grails, quicktip | 1 Comment »
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'){
...
Posted in grails, quicktip | Comments Off
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 ...
Posted in grails, groovy, plugin | 1 Comment »
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 ...
Posted in grails, sql | 6 Comments »