Wednesday, December 11, 2013

Road to Grails 3.0

An interesting video on InfoQ about Grails 2.3 and future Grails 3.0 feature :
Road to Grails 3.0

Friday, December 6, 2013

Grails : full URL of a gsp.

If you need the full URL of a gsp, you can use tag createLink :
<g:createLink action="${params.action}" absolute="true"/>
It will generate something like taht : http://localhost:8080/fjLearning/training

The params.action variable give us the current action.In our case it's training.

More details about tag createLink on http://grails.org/doc/latest/ref/Tags/createLink.html

Friday, November 29, 2013

Deploy your grails application freely on the web with OpenShift



If you want to make a web site and deploy it on the cloud, a possible solution is to make a Grails application and then to deploy on Tomcat.
After that, you can deploy it for free on Openshift :
 
https://www.openshift.com/blogs/day-6-rapid-web-development-on-the-jvm-with-grails

Wednesday, November 27, 2013

Error No default container found with grails


I've found solution about this problem on StackOverFlow : http://bit.ly/1a5otJX

Grails internationalization testing

I had some problem with internationalization with Grails.
I tried to change the language by adding ?lang=us at the end of my request but without success.
I found a simple solution : just switch the language settings of your browser by adding first the language you want. It will change "Accept language" in the HTTP request.

For example, in Firefox, you have to go in Tools -> Option -> Content -> language then choose the preferred language.
After that, you only have to reload your web page.

Wednesday, November 20, 2013

Coding Dojo

Here is an other web site to learn coding online : http://bit.ly/1dpne8b
Lot of languages are available !