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

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -