Grails

Applying layout to template at Runtime in Grails Application

There are use cases where we render the template from our action and update some div in the page using ajax. The downside of this approach is when the user hits the url directly in browser address bar and the UI get totally messed up. So to fix this issue we need to apply the layout at runtime and its pretty easy in grails to do...

by Uday Pratap Singh
Tag: grails layout
16-Mar-2014

Grails

Setting default layout in Grails application

Grails uses Sitemesh for adding layout to the views. Layouts are located in layouts folder and to add layouts to the view we generally add any of the following line in head [java] <g:applyLayout name="layoutName"/> or <meta name="layout" content="layoutName" /> [/java] But most of the time...

by Uday Pratap Singh
Tag: grails layout
05-Apr-2012