Archives
- October 2012
- September 2012
- August 2012
- July 2012
- June 2012
- May 2012
- April 2012
- March 2012
- February 2012
- January 2012
- October 2011
- August 2011
- July 2011
- June 2011
- April 2011
- March 2011
- December 2010
- November 2010
- October 2010
- September 2010
- August 2010
- June 2010
- January 2010
- December 2009
- November 2009
- October 2009
- September 2009
- August 2009
- June 2009
- May 2009
- April 2009
- March 2009
- February 2009
- January 2009
- December 2008
- November 2008
- October 2008
- September 2008
- August 2008
- July 2008
- June 2008
- May 2008
- April 2008
- March 2008
- February 2008
- January 2008
- November 2007
- October 2007
- September 2007
- August 2007
- July 2007
- June 2007
- May 2007
- April 2007
- March 2007
- February 2007
- January 2007
- December 2006
- November 2006
- October 2006
- September 2006
- August 2006
- July 2006
- June 2006
Tag Archives: grails
More Grails Filter Tricks: JSONify Controller Actions
Post by Josh Reed
Building on the previous post, we can use the same filter tricks to clean up some other controller smells. When building REST APIs, it’s a common requirement to output your data in JSON and/or XML. This is usually accomplished using … Continue reading
Grails Filter Tricks: Ajaxify Controller Actions
Post by Josh Reed
A common requirement in the last couple of projects I worked on was the ability to create and edit domain classes via modal dialogs instead of Grail’s standard scaffolded pages. Originally I started down the path of embedding hidden forms … Continue reading
Grails Tip: Deploy to the Cloud with AppFog
Post by Matt Nohr
AppFog (appfog.com, @appfog) is a relatively new cloud platform that lets you deploy your applications to one of a number of different cloud providers like HP Openstack, Rackspace, and Amazon Web Services. It supports a number of languages and databases, … Continue reading
Reserved Words as Grails Domain Objects
Post by Matt Nohr
I recently ran into a SQL exception creating a simple domain class called “Group” that looked like this: class Group { static constratints = {} } When I ran my application I got this not-exactly-helpful error: | Compiling 1 source … Continue reading
GR8Conf Overview
Post by Matt Nohr
This week was the United States GR8Conf, and we were lucky enough to have it right here in Minneapolis. GR8Conf is a conference focusing on Groovy and Grails and is held in the US, Europe, and Australia. Refactr was one … Continue reading
Understanding Grails Aliases
Post by Matt Nohr
In Grails 2.1 (RC2 available at time of writing), Grails introduced a new “alias” command. Like the rest of Grails, there is good high-level documentation for this command. However, here are a few more details. Quick Overview You can use … Continue reading
Partial Mocks with Spock on Groovy/Grails
Post by Matt Nohr
The Spock testing framework currently does not support partial mocks. It is easy to mock out a class, but not individual methods in a class. In almost all cases, this makes sense to me. If you really only want to … Continue reading
Grails JMX Configuration Using Annotations
Post by Matt Nohr
I have a grails application that uses the JMX plugin to expose MBeans. The good part is that it automatically exposes some built in MBeans like hibernate and log4j. The bad part is that it exposes too much information for … Continue reading
Grails Tips: Deployment Tricks
Post by Josh Reed
I’m often working with several versions of a project deployed across a variety of deployment environments. Grails makes it easy to manage all of the configuration for these environments, and also allows you to switch the environment at deployment time … Continue reading
Grails In-Memory Cache using Google’s Guava Library
Post by Matt Nohr
In a Grails application, there are a couple of cases where you may want to consider storing data in a in-memory cache. For example: If it is expensive to read/create the data (reading across the network) If the data will … Continue reading
At refactr we believe in the value of connection, the utility of agile processes, and the power of great ideas. We are creating the next generation of software for people who expect more from their web applications.
