RD
- - an instance of RenderableDefinition
public interface RenderingModel<RD extends RenderableDefinition>
model
and the value returned by the execute method is available under the name
actionResult
. It is commonly used to add backing logic to a component.
It can also abort the rendering by returning SKIP_RENDERING
from its execute method.
Modifier and Type | Field and Description |
---|---|
static String |
SKIP_RENDERING
A constant used in some special cases where rendering must be skipped, i.e. a redirect template.
|
Modifier and Type | Method and Description |
---|---|
String |
execute()
Called after all properties were set.
|
info.magnolia.jcr.util.ContentMap |
getContent()
Map representation of the content node tied to this model.
|
RD |
getDefinition()
The renderable (template, area or component) tied to this model.
|
javax.jcr.Node |
getNode()
The content node tied to this model.
|
RenderingModel<?> |
getParent()
The model of the parent component or template.
|
RenderingModel<?> |
getRoot()
The top root model of the rendering process.
|
static final String SKIP_RENDERING
execute()
method to inform
AbstractRenderer
that it should not render anything in that particular
case.RenderingModel<?> getParent()
javax.jcr.Node getNode()
info.magnolia.jcr.util.ContentMap getContent()
RD getDefinition()
String execute()
RenderableDefinition#determineTemplatePath(String, RenderingModel)
RenderingModel<?> getRoot()
Copyright © 2003–2017 Magnolia International Ltd.. All rights reserved.