page banner
avatar
'Unit testing web flow in Grails' post illustration
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.

avatar
'How to create your own Grails portlet for Liferay?' post illustration
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 are JSR-168 (Java Portlet Api) and JSR-286 (Java Portlet Api 2.0).

avatar
'Custom sorting in Grails' post illustration
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 values that can only be calculated, and that are not persisted in the db.
I know what you might say, - "Hey, why don’t you just use transient properties for that?"

avatar
'Reinforcing Grails Application With Hudson/Jenkins' post illustration
Reinforcing Grails Application With Hudson/Jenkins

Hudson is an excellent continuous integration tool and has become an indispensable assistant in software quality control for many organisations. As for this post I will describe how to couple Hudson and Grails to work in effective synergy.

avatar
'Spring Security Grails plugin. Quick start and some tips' post illustration
Spring Security Grails plugin. Quick start and some tips

Spring Security plugin is a fast and convenient solution for authorizing user access. Almost every Grails web application uses it. In this article I would like to provide a guide about how to apply this solution quickly, and show you some tips that should be really useful for beginners.

avatar
'Geb/Spock functional testing in Grails' post illustration
Geb/Spock functional testing in Grails

At our company’s blog we have already considered many types of the Grails testing. But there are yet one testing type, on which we have to take a look at. In this article we will check out the overview of writing functional tests using Geb/Spock technologies.

avatar
'Creating custom GSP tags and tag libraries in Grails' post illustration
Creating custom GSP tags and tag libraries in Grails

Grails tag libraries are designed to provide content formatting capabilities right on a GSP page. The 'tag' is an action that can be declared in a form of an HTML element. This action can accept an enclosed content and parameters defined as the element attributes to render a modified HTML. For instance, the following built-in tag iterates and renders each element of the list object using the template specified in the content:

avatar
'Grails Unit Testing: covering domain classes and services' post illustration
Grails Unit Testing: covering domain classes and services

Unit testing in Grails is currently implemented with Grails Testing plugin. The plugin provides unit testing facilities through the GrailsUnitTestCase class which offers a lot of useful methods for mocking Grails-specific objects. This post demonstrates how some of these methods can be used to test Grails domain classes and services.

avatar
'Filtering user access in Grails' post illustration
Filtering user access in Grails

Today we’ll talk about the ways to filter user access to some controllers and actions in the Grails application. There are few solutions that could be really useful for implementing this task. So let’s look at a quick overview of them.