Anatomy of a successful project

Starting a new project is always an exciting time. People are discussing the “NEW BIG THING”, putting together their two cents to fully utilize the budget, dreaming… Stakeholder says: “It has to rock! It must create us a competitive advantage!” Project sponsor: “Sure, but it has to be cheap.” Analyst shouts: “We should not underestimate… Continue reading Anatomy of a successful project

Nested set plugin for Grails

We are happy to announce that our NestedSet plugin for the Grails framework has been released. The plugin creates a hierarchical structure on top of plain database records. A description of the “nested set” data structure can be found in Wikipedia. The NestedSet Grails plugin is non-intrusive – it does not change your data model,… Continue reading Nested set plugin for Grails

Playing with Grails application configuration

This small tutorial will show how to create a configuration file and how to manage configuration of your Grails application. It will show how to Access configuration parameters Create external configuration Configure Spring for different environments Create a new environment Accessing configuration parameters The configuration of Grails is stored in grails-app/conf directory. Parameters are stored… Continue reading Playing with Grails application configuration

Configuration and usage of Gldapo in a Grails project

Configuration and usage of Gldapo in a Grails project Gldapo is a groovy library for object oriented LDAP access. “The Gldapo is to LDAP what GORM is to SQL”. Gldapo is packaged in Grails LDAP plugin, its installation is easy. In the root of your Grails project run command: grails install-plugin ldap Configuration The Gldapo… Continue reading Configuration and usage of Gldapo in a Grails project

Grails RichUI – Incorrect international characters of the month names

I am working on a small project and I decided to use RichUI plugin do display a timeline. The plugin is just great and working like a charm. If you want to try it, this tutorial is a very good one. The english version works perfectly, but I have found a small bug in the… Continue reading Grails RichUI – Incorrect international characters of the month names

Web services in Grails

This article summarizes my experience with web services in Grails (and also Groovy). It will focus the on client side – consuming web services. If you are looking for server size – providing services, you can use plugins like Metro or XFire. Options Once you want to create a web service client in pure groovy,… Continue reading Web services in Grails

Modalbox in Grails

There is a nice and handy javascript library for creating kind of a modal “window”, similar to the famous lightbox. Here are few lines of code to make it running in a Grails application Installation First of all, you have to download the library. The easiest way is to install a plugin modalbox grails install-plugin… Continue reading Modalbox in Grails

Grails: internationalization in the service

Today I spent some time by creation of localized messages in a service. Here is a small tutorial. 1. Create your service grails create-service Local 2. Add a messageSource variable to your new service class LocalService { def messageSource } 3. Use it in a service method // Initialize parameters Object[] testArgs = {} def… Continue reading Grails: internationalization in the service