DomainMarkupRenderer domainMarkupRenderer
4 Usage
Version: 6.3.0
4 Usage
To render markup, inject the DomainMarkupRenderer.
Then execute one of the methods provided:
-
renderOutput
(Show page) -
renderInput
(Edit/Create page) -
renderListOutput
(List page)
A string containing all of the markup will be returned.
Each of the methods requires a PersistentEntity that represents the given domain class. To retrieve the PersistentEntity, inject the mapping context and pass in the fully qualified domain class name.
MappingContext grailsDomainClassMappingContext
grailsDomainClassMappingContext.getPersistentEntity("test.foo.Bar")