Grails

Grails 2.2.0 : Namespacing to resolve between controllers of same name

Grails 2.2.0.RC1 was released last week and a new feature to make an entry into the version of the framework is the support for namespaces for controllers and services so that there is no naming conflicts while adding artefacts of the same name from different plugins or within the application. I created a sample app […]

Vivek Krishna
Vivek Krishna
Read

Grails

Spring Security IP Restrictions in Grails

Spring security provides  various methods to ensure that users are getting access to only those parts of application for which they are authorized. one such feature is IP address restriction, which allows mapping URIs to certain IP address(es) so that these URIS are only accessible from these IP address.  These restrictions can be specified in […]

Prakash Balodi
Prakash Balodi
Read

Grails

Groovy Delegation Pattern Using invokeMethod and propertyMissing methods

Following DRY is practised religously in my current project. Recently, I identified a case where code repetition had long been ignored. We used to pass either a domain object or a command object in the view model. Due to this, many domain methods had to be duplicated in the command object. This was probablematic because […]

Imran Mir
Imran Mir
Read

Grails

Follow/Unfollow twitter account using Twitter4j

Hi, In my recent grails project, i worked on integrating twitter API with the grails application. In one of the requirements, we needed to show the tweets from user wall and show the profile of the person/account who posted that tweet. In the profile, the user should be able to Follow or Unfollow that person […]

Vishal Sahu
Vishal Sahu
Read

Grails

Retweet a tweet using Twitter4j

Hi, In one of my grails project, i worked on integrating twitter API with the grails application. The requirement is such that we need to display all of the tweets to any user in our application and provide the basic functionality such as reply, retweet, favorite, send direct message etc using the API calls. I […]

Vishal Sahu
Vishal Sahu
Read

Grails

Reply to a user tweet using Twitter4j

Hi, In one of my grails project, i worked on integrating twitter API with the grails application. The requirement is such that we need to display all of the tweets to any user in our application and provide the basic functionality such as reply, retweet, favorite, send direct message etc using the API calls. I […]

Vishal Sahu
Vishal Sahu
Read

Grails

Mark tweet as ‘Favorite’ using Twitter4j

Hi, In one of my grails project, i worked on integrating twitter API with the application. The requirement is such that we need to display all of the tweets to any user and provide the basic functionality such as reply, retweet, favorite etc using the API calls. I used Twitter4j (a java wrapper for twitter […]

Vishal Sahu
Vishal Sahu
Read

Grails

Sending ‘Direct Message’ to a twitter user using Twitter4j

Hi, In my recent grails project, i worked on integrating twitter API with the application. I used Twitter4j (a java wrapper for twitter API calls), to integrate the application and use the API calls. You can refer this blog to see how we can integrate the grails application with Twitter. For making any API calls […]

Vishal Sahu
Vishal Sahu
Read

Technology

Dynamically changing select value of jQuery Mobile select box

jQuery mobile gives you a very beautiful UI which is compatible with all popular mobile device platforms and i must say its very easy to learn as well. It gives you a very nice select menu instead of typical select box that we see on our web site, for this we just need to add […]