grails - Determining parent page of template -
grails - Determining parent page of template -
inside grails gsp template (e.g., _form.gsp
), how can determine page calling template (e.g., create.gsp
or edit.gsp
) different fields can displayed?
there no general way, no. if know in application foo
action renders foo
view , there aren't exceptions that, of course of study can @ action name. simple set in model when rendering template, <g:render template="foo" model="[parentpage:'edit']"/>
, or set variable in pagescope or similar. there ways accomplish want, no general way in template reply question "what gsp rendered template?". hope helps.
templates grails gsp
Comments
Post a Comment