-
Thread synchronization in Grails application using Hazelcast
Recently, I have been looking for a way to implement thread synchronization in a Grails application which is hosted on several nodes on Rackspace. And while it’s rather easy to synchronize threads within a single servlet container,…
-
Advanced GORM features: inheritance, embedded data, maps and lists storing
In my previous GORM related article, “Association Types in GORM“, I have described how to create different types of relationships using Grails ORM. In this article, I would like to talk about several advanced GORM features that…
-
Dynamically add and remove HTML blocks with Grails tag library and JQuery
This post shows how to create Grails tag library for adding and removing identical HTML blocks, which can be usedwhen you want to give user an option to dynamically add extra inputs for additional information. There are…
-
Pagination and sorting in many-to-many relationship
This example shows how to use pagination and sorting with many-to-many relationship in Grails. Suppose you have two domain classes: Author, Article and you want to display all articles of some author in a page with pagination. Domain classes: The…
-
Association types in GORM
GORM (Grails Object Relational Mapping) is a plugin integrated with Grails and based on Java ORM – Hibernate. In this article, I’m going to describe how to make different kinds of associations in GORM. One-to-many relationships Let’s…
-
How to deploy Grails (Tomcat 7) application to Cloud Foundry
I had an issue with deploying my Grails project to Cloud Foundry with using cloudfoundry-grails-plugin. My application was using Tomcat 7 unlike Cloud Foundry, which use Tomcat 6. In other words, to have a Grails application with…
-
Get total records count with GORM criteria
Assume you have a page with pagination that displays some objects table (selected from DB with GORM criteria) in your Grails application. If you want to know total number of possible results (as if there are no…
-
Unit testing web flow in Grails
I’ve faced a problem with unit testing web flow controllers There’s an existings WebFlowUnitTestMixin for unit testing webflow in GDK,but no word on how to use it in the latest Grails 2.2.0 official documentation. I’ve used spock…
-
Customizing the field widget of the Platform UI Grails plugin
Our team is working on a Grails plugin now, which will have UI based on Platform UI Grails plugin. Platform UI plugin allows you to easily configure Grails applications look using different page markups(themes). It provides a…
-
Changing the Grails project configuration from within a plugin
This code snippet shows how to update project configuration settings from a Grails plugin executable script. The script changes the configuration by copying the settings from a default config file, placed in the plugin’s folder, to the…
-
How to create your own Grails portlet for Liferay?
Portlets are pluggable user interface software components that are managed and displayed in a web portal. They produce fragments of markup code that are aggregated into a portal. There are two specifications of portlets exist nowadays, they…
-
Custom sorting in Grails
Hi, guys, today we’re gonna talk about the really interesting and tricky Grails task, implementation of the custom sorting. It’s a pretty often appearing situation, when you need to sort the list of items, basing on the…
Boost your business with custom software
Tell us about your business needs and we’ll suggest a solution
Thank you!
We have received your request and will get back to you within 1 business day











