Grails

Implementing Login With Facebook

Hi, In my recent grails project i had a requirement to allow an user to login into my site using his Facebook credentials To achieve it , here is what is required to be done : 1) Create an application in facebook : Create an application in facebook from the application dashboard (https://developers.facebook.com/apps). 2) Provide […]

vineet
vineet
Read

Grails

Accessing remote data through cross-domain ajax call in jquery

While developing a mobile app using phonegap ( or otherwise also 🙂 ), we can access remotely hosted mysql database using jquery ajax calls. But this interaction between jquery and mysql database cannot happen directly. We will need to specify a server side script (in PHP terminology) or a controller action (in Grails Terminology) that […]

raj
raj
Read

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
Services