info.magnolia.templating.renderers
Class NoScriptRenderer

java.lang.Object
  extended by info.magnolia.rendering.renderer.AbstractRenderer
      extended by info.magnolia.templating.renderers.NoScriptRenderer
All Implemented Interfaces:
info.magnolia.rendering.renderer.Renderer, info.magnolia.rendering.renderer.RenderingModelBasedRenderer

public class NoScriptRenderer
extends info.magnolia.rendering.renderer.AbstractRenderer

The renderer for definitions without template script. Renders ContentMaps from "components" or "component" attribute from contextObjects.


Field Summary
static String NO_SCRIPT_RENDERER
           
 
Fields inherited from class info.magnolia.rendering.renderer.AbstractRenderer
MODEL_ATTRIBUTE
 
Constructor Summary
NoScriptRenderer()
          Deprecated. since 5.0.2, use NoScriptRenderer(RenderingEngine)
NoScriptRenderer(info.magnolia.rendering.engine.RenderingEngine renderingEngine)
           
 
Method Summary
protected  Map<String,Object> newContext()
           
protected  void onRender(javax.jcr.Node content, info.magnolia.rendering.template.RenderableDefinition definition, info.magnolia.rendering.context.RenderingContext renderingCtx, Map<String,Object> ctx, String templateScript)
           
 void render(info.magnolia.rendering.context.RenderingContext renderingCtx, Map<String,Object> contextObjects)
           
 
Methods inherited from class info.magnolia.rendering.renderer.AbstractRenderer
addContextAttribute, getAggregationStateSafely, getContextAttributes, getMainContentSafely, newModel, newModel, resolveTemplateScript, restoreContext, saveAttribute, saveContextState, setContextAttribute, setContextAttributes, setupContext, wrapNodeForModel, wrapNodeForTemplate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NO_SCRIPT_RENDERER

public static final String NO_SCRIPT_RENDERER
See Also:
Constant Field Values
Constructor Detail

NoScriptRenderer

public NoScriptRenderer()
Deprecated. since 5.0.2, use NoScriptRenderer(RenderingEngine)


NoScriptRenderer

@Inject
public NoScriptRenderer(info.magnolia.rendering.engine.RenderingEngine renderingEngine)
Method Detail

render

public void render(info.magnolia.rendering.context.RenderingContext renderingCtx,
                   Map<String,Object> contextObjects)
            throws info.magnolia.rendering.engine.RenderException
Specified by:
render in interface info.magnolia.rendering.renderer.Renderer
Overrides:
render in class info.magnolia.rendering.renderer.AbstractRenderer
Throws:
info.magnolia.rendering.engine.RenderException

onRender

protected void onRender(javax.jcr.Node content,
                        info.magnolia.rendering.template.RenderableDefinition definition,
                        info.magnolia.rendering.context.RenderingContext renderingCtx,
                        Map<String,Object> ctx,
                        String templateScript)
                 throws info.magnolia.rendering.engine.RenderException
Specified by:
onRender in class info.magnolia.rendering.renderer.AbstractRenderer
Throws:
info.magnolia.rendering.engine.RenderException

newContext

protected Map<String,Object> newContext()
Specified by:
newContext in class info.magnolia.rendering.renderer.AbstractRenderer


Copyright © 2003-2013 Magnolia International Ltd.. All Rights Reserved.