@groovy.transform.Trait @groovy.transform.CompileStatic trait GrailsView extends HttpView implements WritableScript, WriterProvider
A trait for all view types to extend to add methods to generate links, render other templates and so on
| Type | Name and description |
|---|---|
java.lang.String |
actionName
|
grails.config.Config |
config
|
java.lang.String |
controllerName
|
java.lang.String |
controllerNamespace
|
boolean |
prettyPrintWhether to pretty print |
GrailsViewTemplate |
viewTemplateThe view template |
| Type Params | Return Type | Name and description |
|---|---|---|
|
GrailsViewHelper |
getG()
|
|
grails.web.mapping.LinkGenerator |
getLinkGenerator()The link generator |
|
org.grails.datastore.mapping.model.MappingContext |
getMappingContext()The GORM mapping context |
|
org.springframework.context.MessageSource |
getMessageSource()The message source object |
|
grails.web.mime.MimeUtility |
getMimeUtility()The mime utility |
|
grails.core.support.proxy.ProxyHandler |
getProxyHandler()Handlers for proxies |
|
ResolvableGroovyTemplateEngine |
getTemplateEngine()The template engine |
|
void |
model(groovy.lang.Closure modelDefinition)Defines the model |
Whether to pretty print
The view template
The link generator
The GORM mapping context
The message source object
The mime utility
Handlers for proxies
The template engine
Defines the model