info.magnolia.rendering.renderer
Class JspRenderer

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

public class JspRenderer
extends AbstractRenderer

Renders templates by dispatching to the servlet container.

Version:
$Id$

Field Summary
 
Fields inherited from class info.magnolia.rendering.renderer.AbstractRenderer
MODEL_ATTRIBUTE
 
Constructor Summary
JspRenderer()
          Deprecated. since 4.5.10, use JspRenderer(RenderingEngine)
JspRenderer(RenderingEngine renderingEngine)
           
 
Method Summary
protected  Map newContext()
          We expose nodes as Map instances in JSPs.
protected  void onRender(javax.jcr.Node content, RenderableDefinition definition, RenderingContext renderingCtx, Map<String,Object> ctx, String templateScript)
          Finally execute the rendering.
 
Methods inherited from class info.magnolia.rendering.renderer.AbstractRenderer
addContextAttribute, getAggregationStateSafely, getContextAttributes, getMainContentSafely, newModel, newModel, render, 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
 

Constructor Detail

JspRenderer

public JspRenderer()
Deprecated. since 4.5.10, use JspRenderer(RenderingEngine)


JspRenderer

@Inject
public JspRenderer(RenderingEngine renderingEngine)
Method Detail

onRender

protected void onRender(javax.jcr.Node content,
                        RenderableDefinition definition,
                        RenderingContext renderingCtx,
                        Map<String,Object> ctx,
                        String templateScript)
                 throws RenderException
Description copied from class: AbstractRenderer
Finally execute the rendering.

Specified by:
onRender in class AbstractRenderer
Throws:
RenderException

newContext

protected Map newContext()
We expose nodes as Map instances in JSPs.

Specified by:
newContext in class AbstractRenderer


Copyright © 2003–2014 Magnolia International Ltd.. All rights reserved.