Let's assume we want to use the temperature conversion service from grails. In order to make the project minimal, we will modify the default view of the project, add a controller proxying to the service and generate a minimal view to display the result. Here we go:
Modify the default view to
Here is the controller code:
Then, we create the view to display the result
Here is the simplistic view:
Currently, the Grab annotation cannot be used without interfering with native grails jars, so you have to add the following jars into your application lib directory
If you have been running our very first example all these jars are probably in your
directory
BuildConfig.groovy
If you reference groovyws in your grails app then you will need a set of exclusions to prevent version conflicts ( from list Nabble - Ronny Løvtangen ):