Grails Custom TextField Tag: Dynamically adding Domain level Field Constraints

Recently in my project, I came across a requirement to add a custom grails textfield in the application. The application is primarily a Web based application with multiple domain classes having numerous nested level associations with each other. Corresponding to the domain classes, there are multiple view pages like Create, Edit, Show, Search, etc. The [...]

Groovy client for Apache Cassandra

I have been exploring Apache Cassandra recently for implementation of a project. Cassandra is a NoSQL (not only SQL) database open sourced by Facebook. This blog shares a Groovy implementation of a Cassandra client which makes accessing Cassandra as simple as accessing a HashMap. The Groovy implementation is currently a wrapper on the basic Thrift API. [...]

Implementing Generic functionality in Grails

In web applications we have functionalities like auto suggestions , rating objects, adding to favourites etc which repeat themselves in an application and across applications. So it demands to think about implementing a generic way of rating and adding to user favourites etc and follow DRY principle. Recently in one of my Grails projects we [...]

Authenticating user by his Facebook credentials

In my previous post I talked about how we can connect to Facebook from our application and get the user deatils. In this post we will discuss how we can authenticate the user based on his facebook user details. We will  use  acegi plugin of grails to allow uses our of web application to be [...]

Open Flash Chart in a Grails Application

In my Grails project we had a requirement that we needed to show graphs. Our client wanted to go for a opensource solution. We decided on the option OpenFlashChart. Grails comes up with its plugin for OpenFlashChart. With Open Flash Chart we can easily show barchart, line chart, piechart, Area charts etc. Let me explain [...]