Category: Grails
-
SpringOne 2GX final thoughts
I wound up too busy to maintain my daily reports, but here are a couple of items I want to highlight as important take-aways from SpringOne 2GX. Rather than just recap sessions or dole out marketing-type praise, I’m going to focus on some things I learned that I didn’t necessarily expect. A lot of people…
-
SpringOne 2GX Day 0
I’m at the SpringOne2GX conference (http://www.springone2gx.com) in New Orleans this week. Monday (which they’re calling day 1 but I’m referring to here as day 0) consisted only of registration plus a reception and finally a keynote by Rod Johnson. As a frequent NFJS attendee, the “reception” was a bit of a culture shock. One of…
-
Humor lost on Grails Podcast
During the last Grails Podcast, Glen and Sven mentioned how they’d received feedback from me on the previous podcast, part two of their interview with Scott Davis. Instead of reading my feedback verbatim, they made the (possibly wise) decision to just summarize it. The only problem I have with their decision is that I went…
-
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…
-
Star rating in the Grails RichUI plugin
I’ve been working on a Grails application for rating the popularity of Grails plugins. Rather than just use a simple form with radio buttons or a drop-down list, I thought I’d use the star rating component of the RichUI plugin. The initial set-up is easy enough. First, install the RichUI plugin. grails install-plugin richui then…
-
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…
-
Silly GORM tricks, part I: Lists
In GORM, when one class has a hasMany relationship with another, a java.util.Set is injected into the class. Sometimes, though, I want to use a List instead in order to maintain ordering. The Grails reference documents (see section 5.2.4 specifically) discuss how to do that, but there are other issues that I needed to solve…
-
Some notes about the Windows installer for Grails
This isn’t really a problem, but I don’t think it’s documented anywhere, so I thought I’d record it here. (And by the way, if your reaction to my Windows-based comments is going to be “why not use something other than Windows,” my answer is (1) at least one of my machines is always running Windows,…