|
View:
New views
5 Messages
—
Rating Filter:
Alert me
|
|
|
Includes in GSPHi!
I'm new in GRAILS and i need know how to use includes of gsp files as is it in JSP include tag. GRAILS have a similar approach?! Thanks in advance! -- ************************************** Denis Rodrigues Cassiano www.deniscassiano.com Jesus Cristo é o Senhor ************************************** |
|
|
Re: Includes in GSPOn 15 Sep 2006, at 10:33, Denis Rodrigues Cassiano wrote: > Hi! > > I'm new in GRAILS and i need know how to use includes of gsp files > as is it > in JSP include tag. GRAILS have a similar approach?! > > Thanks in advance! The g:render tag is what you want: http://grails.org/Tag+-+render Note the bit right at the bottom of the page indicating that the view file must start with "_" but in the tag you don't include the "_". Cheers ~ ~ ~ Marc Palmer (marc@...) AnyWare Ltd. - Consultant Authorized JIRA reseller, support and solutions provider http://www.anyware.co.uk/ --------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email |
|
|
Re: Includes in GSPToo bad it doesn't work in the sitemesh layout. I get:
... <g:render template="navigation" /> ... java.io.FileNotFoundException: grails-app/views/grails-app/views/_navigation.gsp (No such file or directory) Or am I missing something? /S
|
|
|
Re: Includes in GSPObviously writing this helped :-)
<g:render template="layouts/navigation" /> works /S
|
|
|
Re: Includes in GSPrename your template to follow the convention for grails templates _mytemplate.gsp
and you'll be back on track On Sat, Nov 7, 2009 at 3:51 PM, Sigmund <sigmund.lundgren@...> wrote:
|
| Free embeddable forum powered by Nabble | Forum Help |