info.magnolia.module.blossom.view
Class JspParagraphViewRenderer

java.lang.Object
  extended by info.magnolia.module.templating.AbstractRenderer
      extended by info.magnolia.module.templating.paragraphs.AbstractParagraphRenderer
          extended by info.magnolia.module.templating.paragraphs.JspParagraphRenderer
              extended by info.magnolia.module.blossom.view.JspParagraphViewRenderer
All Implemented Interfaces:
info.magnolia.module.templating.ParagraphRenderer, org.springframework.beans.factory.InitializingBean, org.springframework.context.MessageSourceAware, org.springframework.web.context.ServletContextAware

public class JspParagraphViewRenderer
extends info.magnolia.module.templating.paragraphs.JspParagraphRenderer
implements org.springframework.web.context.ServletContextAware, org.springframework.context.MessageSourceAware, org.springframework.beans.factory.InitializingBean

Renders JSP paragraphs.

Since:
1.0

Constructor Summary
JspParagraphViewRenderer()
           
 
Method Summary
 void afterPropertiesSet()
           
protected  String determineTemplatePath(info.magnolia.cms.core.Content content, info.magnolia.module.templating.RenderableDefinition definition, info.magnolia.module.templating.RenderingModel model, String actionResult)
           
protected  void onRender(info.magnolia.cms.core.Content content, info.magnolia.module.templating.RenderableDefinition definition, Writer out, Map ctx, String templatePath)
           
 void setMessageSource(org.springframework.context.MessageSource messageSource)
           
 void setServletContext(javax.servlet.ServletContext servletContext)
           
protected  void setupContext(Map ctx, info.magnolia.cms.core.Content content, info.magnolia.module.templating.RenderableDefinition definition, info.magnolia.module.templating.RenderingModel model, Object actionResult)
           
 
Methods inherited from class info.magnolia.module.templating.paragraphs.JspParagraphRenderer
getPageAttributeName, newContext, wrapNodeForTemplate
 
Methods inherited from class info.magnolia.module.templating.paragraphs.AbstractParagraphRenderer
render
 
Methods inherited from class info.magnolia.module.templating.AbstractRenderer
getMagnoliaTemplatingUtilities, newModel, render, restoreContext, saveAttribute, saveContextState, setContextAttribute
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JspParagraphViewRenderer

public JspParagraphViewRenderer()
Method Detail

determineTemplatePath

protected String determineTemplatePath(info.magnolia.cms.core.Content content,
                                       info.magnolia.module.templating.RenderableDefinition definition,
                                       info.magnolia.module.templating.RenderingModel model,
                                       String actionResult)
Overrides:
determineTemplatePath in class info.magnolia.module.templating.AbstractRenderer

setupContext

protected void setupContext(Map ctx,
                            info.magnolia.cms.core.Content content,
                            info.magnolia.module.templating.RenderableDefinition definition,
                            info.magnolia.module.templating.RenderingModel model,
                            Object actionResult)
Overrides:
setupContext in class info.magnolia.module.templating.AbstractRenderer

onRender

protected void onRender(info.magnolia.cms.core.Content content,
                        info.magnolia.module.templating.RenderableDefinition definition,
                        Writer out,
                        Map ctx,
                        String templatePath)
                 throws info.magnolia.module.templating.RenderException
Overrides:
onRender in class info.magnolia.module.templating.paragraphs.JspParagraphRenderer
Throws:
info.magnolia.module.templating.RenderException

setServletContext

public void setServletContext(javax.servlet.ServletContext servletContext)
Specified by:
setServletContext in interface org.springframework.web.context.ServletContextAware

setMessageSource

public void setMessageSource(org.springframework.context.MessageSource messageSource)
Specified by:
setMessageSource in interface org.springframework.context.MessageSourceAware

afterPropertiesSet

public void afterPropertiesSet()
                        throws Exception
Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
Throws:
Exception


Copyright © 2009-2011 Magnolia International Ltd.. All Rights Reserved.