org.codehaus.groovy.grails.web.sitemesh
Class GroovyPageLayoutFinder
java.lang.Object
org.codehaus.groovy.grails.web.sitemesh.GroovyPageLayoutFinder
public class GroovyPageLayoutFinder
- extends java.lang.Object
Provides the logic for GrailsLayoutDecoratorMapper without so many ties to
the Sitemesh API.
- Since:
- 2.0
|
Method Summary |
com.opensymphony.module.sitemesh.Decorator |
findLayout(javax.servlet.http.HttpServletRequest request,
com.opensymphony.sitemesh.Content page)
|
com.opensymphony.module.sitemesh.Decorator |
findLayout(javax.servlet.http.HttpServletRequest request,
com.opensymphony.module.sitemesh.Page page)
|
protected com.opensymphony.module.sitemesh.Decorator |
getApplicationDefaultDecorator(javax.servlet.http.HttpServletRequest request)
|
com.opensymphony.module.sitemesh.Decorator |
getNamedDecorator(javax.servlet.http.HttpServletRequest request,
java.lang.String name)
|
com.opensymphony.module.sitemesh.Decorator |
getNamedDecorator(javax.servlet.http.HttpServletRequest request,
java.lang.String name,
boolean viewMustExist)
|
void |
setCacheEnabled(boolean cacheEnabled)
|
void |
setDefaultDecoratorName(java.lang.String defaultDecoratorName)
|
void |
setEnableNonGspViews(boolean enableNonGspViews)
|
void |
setGspReloadEnabled(boolean gspReloadEnabled)
|
void |
setViewResolver(org.springframework.web.servlet.ViewResolver viewResolver)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LAYOUT_ATTRIBUTE
public static final java.lang.String LAYOUT_ATTRIBUTE
- See Also:
- Constant Field Values
RENDERING_VIEW_ATTRIBUTE
public static final java.lang.String RENDERING_VIEW_ATTRIBUTE
- See Also:
- Constant Field Values
GroovyPageLayoutFinder
public GroovyPageLayoutFinder()
setDefaultDecoratorName
public void setDefaultDecoratorName(java.lang.String defaultDecoratorName)
setEnableNonGspViews
public void setEnableNonGspViews(boolean enableNonGspViews)
setGspReloadEnabled
public void setGspReloadEnabled(boolean gspReloadEnabled)
setCacheEnabled
public void setCacheEnabled(boolean cacheEnabled)
setViewResolver
public void setViewResolver(org.springframework.web.servlet.ViewResolver viewResolver)
findLayout
public com.opensymphony.module.sitemesh.Decorator findLayout(javax.servlet.http.HttpServletRequest request,
com.opensymphony.sitemesh.Content page)
findLayout
public com.opensymphony.module.sitemesh.Decorator findLayout(javax.servlet.http.HttpServletRequest request,
com.opensymphony.module.sitemesh.Page page)
getApplicationDefaultDecorator
protected com.opensymphony.module.sitemesh.Decorator getApplicationDefaultDecorator(javax.servlet.http.HttpServletRequest request)
getNamedDecorator
public com.opensymphony.module.sitemesh.Decorator getNamedDecorator(javax.servlet.http.HttpServletRequest request,
java.lang.String name)
getNamedDecorator
public com.opensymphony.module.sitemesh.Decorator getNamedDecorator(javax.servlet.http.HttpServletRequest request,
java.lang.String name,
boolean viewMustExist)