Archive | Grails RSS feed for this section

4 March 2010 0 Comments

High performance Grails with memcached

This article is the second one in my article series about fast loading web pages. The first article dealt with the Django Framework while this one is about Grails which I have recently elected as my preferred rapid web application framework. Ever since I switched from Django to Grails there was one issue that bothered [...]

18 January 2010 0 Comments

Mapping the result of a native SQL query to a Grails domain class collection

Today I could once again not find a proper way to express a query needed for my current Grails project in either Hibernate HQL nor the DSL based variant of Hibernate’s Criteria API. While it is quite simple to run native SQL Queries in Grails Project using Spring’s NamedParameterJdbcTemplate I never had to actually Map [...]

13 January 2010 0 Comments

A simple GSP toolbar taglib for Grails

Did you ever had to implement a menu in Grails GSP where every link element should be seperated from its predecessor by a separator character and where some of the elements can be missing when certain conditions are not met (security etc)? The part with the optional elements can turn the separator handling into a [...]

10 October 2009 0 Comments

Grails sanitized stracktraces

The other day I was writing a medium complex HQL query for a Grails App and no matter what the line executing the query would crash like this: ?View Code GROOVYjava.lang.NullPointerException at $Proxy13.createQuery(Unknown Source) at com.acme.PerformanceService.makePerformanceSheet(PerformanceService.groovy:38) … So how the hell do we figure out what the problem given so few information? Turns out that [...]

17 September 2009 1 Comment

Configuring memcached in a Grails Application

I’m a big fan of using memcached for improving the scalability of websites so when I recently fell in love with the Grails Framework I began to look for a way to configure the memcached client which blends in with the framework. Luckily Grails provides a very easy way to configure Spring Beans using a [...]

20 July 2009 4 Comments

Updating multiple page elements with Grails and Ajax

Every Web Application Project I’ve been involved in the recent past had one thing in common: the client demanded more and more rich-client features at an ever increasing pace – without committing itself to real rich-client frameworks such as Flex or Silverlight. This leaves us with Javascript / AJAX for implementing highly dynamic User Interfaces [...]

Tags:
18 June 2009 1 Comment

Using GIT with Grails UI-Performance Plugin

I’ve been doing a serious amount of Grails Development lately and if there’s one Grails Plugin I consider mandatory for any serious production deployment then it is the UI-Performance plugin by Burt Beckwith. One of the features of the plugin that reduces server load is versioning and far-future “Expires” and “Cache-Control” headers for static resources. Each time [...]