Tag: Grails
-
Upcoming Events, and “The Streak”
I’m really not a workaholic. I prefer days off as much as anybody. The problem is that there are all these things I want to do, so I volunteer to do them, and suddenly I’m overbooked so much I don’t have time for a break. I think part of it comes down to an acronym…
-
Groovy posts in other places
Recently I’ve been writing about Groovy and Grails for my friends at Accelebrate. I do that because: They’re a great client They support what I do They pay me CASH MONEY The only problem is, whenever I post there, I don’t post here. I thought, therefore, that I’d add some links here to let everyone…
-
If a method arg is a closure, for crying out loud pass it a closure
This is a (mildly) embarrassing post, because it demonstrates how in my transition to functional programming I missed something important. I get it now, though, and I might as well help others avoid the same mistake I made. I teach a lot of Grails training classes, and one question that always comes up is how…
-
Groovy/Grails – Pivotal == Opportunity
The news broke this morning that Pivotal plans to withdraw its financial support from the Groovy and Grails projects by the end of March, 2015. The heads of both projects, Guillaume Laforge and Graeme Rocher, have each blogged about it, with their typical grace, thanking Pivotal for the opportunity and assuring everybody that both projects…
-
SpringOne2GX, Day Minus 3
Yes, that’s a minus sign, because the event in question hasn’t happened yet. This is my first report from the upcoming SpringOne2GX conference, which starts in Dallas, TX next Monday, 9/8/14 (or 8/9/14 for my non-US-based friends). Since there are no talks on the opening day (just an opening keynote and reception), I’m arbitrarily designating…
-
Using a codec in a Grails unit test
This is a small issue, but I encountered it and found a solution on the mailing lists, so I thought I’d document it here. I was demonstrating a trivial Grails application in class today and decided to unit test it. The app has a single controller, called WelcomeController: [sourcecode language=”groovy”] class WelcomeController { def index…
-
Minor bug in Grails selenium plugin
There is a minor bug in the selenium plugin for Grails. It has been discussed on the mailing list, but I thought I would also document it here. I’m using Grails 1.0.3 with version 0.4 of the selenium plugin, which wraps selenium core version 0.8.3. If you install the plugin and try to run the…
-
Getting a list of Grails plugins programmatically
In September, I’m very happy to be giving a couple of presentations at the No Fluff, Just Stuff conference in the Boston area. One of my presentations is a review of the various available Grails plugins. To prepare for that, I thought I’d create a Grails application that acted as a survey, so people could…
-
Silly GORM tricks, part III: SQL keywords as attributes
I was writing a very simple Grails application and ran into a problem when I accidentally used a SQL keyword as a property name. This post documents what happened, and how I (pretty easily) fixed it. To illustrate the issue, consider a trivial Grails application called “messaging” with a single class called Message. class Message…
-
Silly GORM tricks, part II: dependent variables
This post discusses a relatively simple topic in GORM: how to use dependent variables in a domain class. It’s simple in the sense that it’s been discussed on the mailing list, but I haven’t seen it documented anywhere so I thought I’d do so here. I started with a simple two-class domain model that I…