Daahh !! Who doesn't know how to handle exceptions. A simple try-catch block would do the job. But think of so many methods where we will have to keep the same code of catching exceptions and then creating the desired response. Hmm, haven't you heard of the common try-catch in the filter? Well, we can do that! But let's say we have...
We all have search functionality in our applications. It is one of the most core features you would find ranging from searching for users, products, companies, etc. But are you sure your search functionality is doing exactly what it is supposed to do? You might have written test cases for it as well. But still, there are things...
After an exciting and eventful day one, we entered day two of GR8Conf IN 2017. Day two was pretty awesome with lots of hands-on coding and labs in each session. The day had three parallel tracks with amazing speakers. The atmosphere, the sessions and the speakers really made the day wonderful. Despite a cold day, we could feel...
GR8Conf IN 2017, the second Indian edition of the GR8Conf was held on the first week of January in New Delhi. GR8Conf is an independent series of conferences in India, Denmark and the US that are dedicated to the Groovy and Grails community. The 2-day conference was attended by over 200 Groovy and Grails enthusiasts and technocrats...
Some applications require to store and show last login of the user which is quite common. With this feature a user can verify the last login date and time upon successful login. I would like to explain this through a use case - One of the administrative application on Grails required to hold last login date and time of the user, so...
Our experts at TO THE NEW believe in sharing knowledge by contributing to Plugins, speaking at conferences, organizing conferences and so on. Outlined below is the list of Grails Plugin contributions (both that we have developed and migrated to Grails 3.0) to extend various Grails functionalities. 1. Pretty Time - This Grails plugin...
Our development team always strives to contribute to the community in various ways including speaking at conferences, hosting conferences, developing plugins to extend functionalities and so on. In this blog, we outline all the plugins that our development team has contributed towards MEAN stack: Javascript (MEAN Stack) Plugins 1....
Grails 3 comes with lots of new features and performance improvements, one of them being Interceptors which is a kind of a replacement for Filters from earlier versions of Grails. Filters are used to apply logic across the whole group of Controllers, URI, or to a particular action and are used in most of the Grails projects. ...
Documentation is a very important aspect in any software development project because it helps us to understand how our software application works. Recently, I have been trying to give back to Grails community by updating existing plugins to Grails 3, creating and updating documentation of Grails plugins and by opening bug report....
Most Grails application are intended to deploy within external container. According to the traditional way of deployment, the apps are bundled as war packaging, deploy it into any external container like tomcat and Jetty. There is a plugin Standalone App Runner which allow to em-bade a container inside the grails application itself....
In my last blog, we discussed how to hook into GORM API to add some common custom functionality. We will refer the same problem that we discussed in my last blog. Here is the problem statement: In my grails plugin I was needed to add some fields that were common to a set of domains. For eg: for some domains we wanted to store fields like...
Generally Internationalization is used for displaying HTML text based on user’s locale or region. This is often done on server side of the application. Of late a lot of applications do the HTML generation on the client side, rather than on the server side. And to support the internationalization on client side is a common problem...