page banner
avatar
'Get total records count with GORM criteria' post illustration
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 pagination parameters), you can do it in this way:

avatar
'Native 0mq library version for akka-zeromq-2.0.x' post illustration
Native 0mq library version for akka-zeromq-2.0.x

I had a chance to try akka-zeromq module last month in order to implement solution for inter-service communication using Scala, Akka 2.0 and ZeroMQ.

avatar
'Customizing the field widget of the Platform UI Grails plugin' post illustration
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 bunch of useful UI sets and allows the developers customize application look easily by creating own UI sets and themes.

avatar
'Changing the Grails project configuration from within a plugin' post illustration
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 Config.groovy. This is usually very useful during a plugin installation when you need to provide some default configuration:

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 remote git branch in IntelliJ IDEA' post illustration
How to create remote git branch in IntelliJ IDEA

To create remote Git branch in IntelliJ idea one should:

avatar
'Hosting StackMob HTML5 application on Apache Web Server' post illustration
Hosting StackMob HTML5 application on Apache Web Server

Our team had a task to develop complex application for StackMob. During the development we have faced a need to host HTML5 application on our internal server to increase productivity of our QA department. This article explains how one can host HTML5 application on any server running Apache2, provided you have full control on the Apache modules and configuration.

avatar
'Regression Testing' post illustration
Regression Testing

Regression testing is one of the most frequently used objectives of testing. It focuses on the application retesting after changes are implemented. That changes can be local, - like new features or bug-fixes, or global, - like new business logic implementation.

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).