

17
Sep, 13
Grails 2.3.0 introduced couple of new properties to handle binding of Strings. The 2 new config properties which have been added are “trimStrings” and “convertEmptyStringsToNull”. Keep this fact in mind if you are upgrading from Grails 2.2.x to...

17
Sep, 13
Grails Spring-Security login with username or email ignoring case
In my a previous project I was told to do authentication using spring-security where user can login with username or email and both can be case insensitive. For implementing the same I did following: First install the spring-security-core plugin in your application...

17
Sep, 13
Fetch data from multiple datasource in grails
Please refer to my other blog titled “Configuring Multiple datasources in Grails” to know how to configure multiple datasources in Grails application. Now here I am writing about how to make finders work with multiple datasources in Grails. Lets say there...

17
Sep, 13
Configure Multiple datasources in grails
In my one of assignment, requirement was to support multiple datasources for the application. I searched through the web for the same and found that Grails 2.X.X support the multiple datasources out of the box. You just have to configure it in your DataSource.groovy...

17
Sep, 13
Parse date in grails 2.x.x regardless format
In my last project I had to parse the date but format was not fixed. I have googled for the same and found that grails 2.x.x added a new method in params using that you can parse the date regardless format. Code looks like : def date= params.date('myDate',...

12
Sep, 13
Everyday JS : Part 2 – NPM and modules in Node.js
Modules are the nodejs way of doing things bigger and easier, rather than spending time on trivial problems which has been already solved and optimized. If you’re someone like me, coming from a programming background of C/C++, PHP or Python, you’d find yourself...

12
Sep, 13
Resume SCP connection
I am in the middle of moving a big database dump or a tarball from production server to qa server and the connection gets stalled at 90%. Imagine this to be a file whose size is around 500MB and i will have to login again and redo the whole process. In the meantime i...

12
Sep, 13
Grails 2.0 Sending Error Mail with SMTP Appender
Here is a simple method to stay alert of any error being generated on your server. Basically we are going to use SMTP appender. I did a simple google search and found out various blogs but nothing seemed to work in Grails 2.2.0 that’s the version i am using....

20
Apr, 13
Advance feature of ckeditor with grails
Hi, I would like to share few advanced things about ckeditor.If you want some basic knowledge and how to install it, go to its home page. CK Editor 1. If you want to use more than one ckeditor on a single page then name must differ. e.g.: [code lang="groovy"]...

10
Apr, 13
Getting Started with Backbone.js with Example
Backbone.js A JavaScript library that provides helpful types for building and organizing rich JavaScript interfaces. Backbone.js defination : Backbone.js gives structure to web applications by providing models with key-value binding and custom events, collections with...

8
Apr, 13
Backbone.js Models
Backbone.js is a JavaScript frameworks for creating MVC-like web applications. Defining Model in Backbone.js Models can be created by extending Backbone.Model A model is basically a Javascript object, i.e. key-value pairs, with some helper functions to handle event...

8
Apr, 13
Groovy count
Groovy collections never fail to impress me. There are so many useful methods in Collections and count is one of them. Let’s take a look at 3 variants of this method def dataList = ['1','2','1','3','4','1','2','1','3','4'] count() method allows us to find out...

3
Apr, 13
Grails Environment Setup Ubuntu 12.04
Setup JDK in Ubuntu Steps: 1.Extract jdk to opt folder command: sudo unzip jdk1.*.zip -d '/opt' 2.Edit your .bashrc file command: gedit ~/.bashrc 3.Add the following lines at the end of .bashrc export JAVA_HOME=/opt/jdk1.* PATH=.:$PATH:$JAVA_HOME/bin export PATH...

30
Mar, 13
Understanding Flash Scope in Grails
The flash object is a map and one of the more common use cases for flash scope is to store a message that will display when some form of validation fails. Storing a Message in Flash Scope [php]class SampleController{ def index() { flash.message =...

1
Mar, 13
Grails Basics
This is my first blog post since i joined our Grails programming team. Let me try to explain MVC by breaking it down into simple components. Basically model is used to work with back-end. View is what gets displayed to user. Controller is one of most important place...

9
Feb, 13
Integrating a rich text editor in your Grails application.
We all require a rich text editor in our applications whether it’s for composing a mail or just for writing a “about me” section of a profile. I’m going to show you how to integrate one such editor in your application. We’ll use CKeditor...

8
Feb, 13
Grails 2.2.0 integration with twitter using Grails Oauth Plugin
In our current project we were asked to implement twitter signup/login functionality using Oauth . We did some research and decided to use the Oauth Plugin and here are the steps we followed : Step 1 : Install the Oauth plugin We opened BuildConfig.groovy and added...

4
Feb, 13
Simple pattern to use jQuery Plugins
There are lot of jquery plugin which we use in our projects like jQuery ui, Number Formatter, mask, select2 etc. One of the simple pattern is to use these plugins through out the application is to make a common javascript file which defines rules by id or class. For...

31
Jan, 13
Grails 2.2.0 integration with facebook using Grails Oauth Plugin
In our current project we were asked to implement facebook signup/login functionality using Oauth . We did some research and decided to use the Oauth Plugin and here are the steps we followed : Step 1 : Install the Oauth plugin We opened BuildConfig.groovy and...
Recent Comments