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 [...]

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 [...]

Connect to Facebook in Grails App

Recently we integrated the Facebook connect plugin in our Grails project. In this post we will see how to connect to facebook  from our application. So that we can allow facebook users to use our Application.First step would be to get the facebook connect button on to our home page. The code for this is [...]

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 [...]