Wednesday, January 31, 2007

Grails 0.4 Released!



Grails 0.4 has been released today! You can download it from: http://grails.org/Download

Notable improvements include:

Read the full announcement at http://www.nabble.com/-groovy-user--Grails-0.4-Released!-tf3150030.html. Change log at http://jira.codehaus.org/browse/GRAILS?report=com.atlassian.jira.plugin.system.project:changelog-panel.

Thursday, January 25, 2007

First public Grails based site



Marc Palmer has posted his experiences with developing a Grails based site for one of PepsiCo UK's well known juice brands, Copella: http://www.copellafruitjuices.co.uk

Read the full story here: http://www.nabble.com/Major-UK-brand-launches-Grails-based-site-tf3081890.html


Monday, January 22, 2007

Switching to Google



This weekend I switched with both my email and blog to Google. Google is really offering great integrated services like email, blogging, calendar, sharing docs and spreadsheets etc. And I think their portfolio of services will only increase.

Thursday, January 18, 2007

Grails Templating



Since Grails 0.4 (not yet released, but downloadable as snapshot), you can customize how Grails creates/generates artifacts and scaffoldig.

The creation of artifacts like domain classes, controllers, services etc., but also the generation of the scaffolding controller and views, are now template based. As Grails developer you will notice no difference in contrast to previous version, as the the Grails distribution has default templates embedded.

However, for customizing your project needs, you can now take the advantage of customizing these templates for each application. These customization may vary from just extending a BaseController to completely customized layout in the views. Especially customizing the generated HTML in the views offers a lot of potential for developing your applications faster. Changing the same HTML code in generated views is time consuming, but with the customized templates you just do it once, and get it anywhere!

To customize the templates you will need to install the templates. Go into your project's basedir and type:
grails install-templates

This will install the templates in the src/templates folder of your project. Two kind of templates will be installed: artifact and scaffolding templates. The artifact templates are templates which will be used when creating artifacts with the create-xxx command line tools. The scaffolding templates will be used for scaffolding. There are scaffolding templates for the controller and for each view (list.gsp, create.gsp, edit.gsp, show.gsp).

After installing the templates, Grails will use these templates instead of the embedded default templates. If you later don't want to use customized templates anymore, just delete the customized templates from your project and the embedded default templates will be used again.

See also http://www.grails.org/Artifact+and+Scaffolding+Templates.

Thursday, January 11, 2007

I'm part of the team!



In my last blog entry (ages ago already; shame on me) I pointed to a new and very interesting web application framework: Grails.

As I was playing with Grails at home I became more and more enthusiastic about it. In the meantime the popularity of Grails also increased heavily: blog entries, forum usage, screencasts, presentation at JavaPolis, the Grails book etc. Last December I started diving in the Grails source code myself and as a matter of fact I joined the Grails development team this week, and I'm really pleased with this!