|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object info.magnolia.module.templating.AbstractRenderer info.magnolia.module.templating.paragraphs.AbstractParagraphRenderer info.magnolia.module.templating.paragraphs.JspParagraphRenderer
public class JspParagraphRenderer
A simple paragraph renderer which delegates to a jsp.
Constructor Summary | |
---|---|
JspParagraphRenderer()
|
Method Summary | |
---|---|
protected String |
getPageAttributeName()
Used to give JSP implementations to give the chance to use on other name than page which is a reserved name in JSPs. |
protected Map |
newContext()
Create a new context object which is a map. |
protected void |
onRender(Content content,
RenderableDefinition definition,
Writer out,
Map ctx,
String templatePath)
Finally execute the rendering. |
protected Content |
wrapNodeForTemplate(Content currentContent,
Content mainContent)
We expose nodes as Map instances in JSPs. |
Methods inherited from class info.magnolia.module.templating.paragraphs.AbstractParagraphRenderer |
---|
render |
Methods inherited from class info.magnolia.module.templating.AbstractRenderer |
---|
determineTemplatePath, getAggregationStateSafely, getMagnoliaTemplatingUtilities, getMainContentSafely, newModel, render, restoreContext, saveAttribute, saveContextState, setContextAttribute, setupContext, wrapNodeForModel |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JspParagraphRenderer()
Method Detail |
---|
protected void onRender(Content content, RenderableDefinition definition, Writer out, Map ctx, String templatePath) throws RenderException
AbstractRenderer
onRender
in class AbstractRenderer
content
- TODO
RenderException
protected Map newContext()
AbstractRenderer
newContext
in class AbstractRenderer
protected Content wrapNodeForTemplate(Content currentContent, Content mainContent)
wrapNodeForTemplate
in class AbstractRenderer
currentContent
- the actual content being exposed to the templatemainContent
- the current "main content" or "page", which might be needed in certain wrapping situationsTODO : return an Object instance instead - more flexibility for the template engine ?
protected String getPageAttributeName()
AbstractRenderer
getPageAttributeName
in class AbstractRenderer
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |