public class GrailsSiteMeshView extends SiteMeshView
Grails-flavoured SiteMeshView. Pushes a fresh
Sitemesh3CapturedPage on the request for the duration of the
main-view render so the GSP capture taglibs (<g:captureHead>
etc.) populate a page attached to the current request. The attribute is
restored on exit.
Also overrides createContext to return a
GrailsSiteMeshViewContext, which performs the same push/pop
around each decorator dispatch. The combination lets the main view and
each layout level capture into their own Sitemesh3CapturedPage
without clobbering each other, even for nested
<g:applyLayout>.
| Constructor and description |
|---|
GrailsSiteMeshView(View innerView, ContentProcessor contentProcessor, DecoratorSelector<SiteMeshContext> decoratorSelector, ServletContext servletContext, ViewResolver viewResolver) |
| Type Params | Return Type | Name and description |
|---|---|---|
|
protected SiteMeshViewContext |
createContext(HttpServletRequest request, HttpServletResponse response, java.lang.String contentType, ResponseMetaData metaData) |
|
protected void |
postRender(HttpServletRequest request, java.lang.Object token) |
|
protected java.lang.Object |
preRender(HttpServletRequest request) |