org.apache.myfaces.renderkit.template
Class DefaultTemplateEncoder
java.lang.Object
org.apache.myfaces.renderkit.template.DefaultTemplateEncoder
- All Implemented Interfaces:
- TemplateEncoder
public class DefaultTemplateEncoder
- extends java.lang.Object
- implements TemplateEncoder
- Author:
- Martin Marinschek
Method Summary |
protected freemarker.template.Configuration |
createConfig(javax.faces.context.FacesContext context)
|
void |
encodeTemplate(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
javax.faces.render.Renderer renderer,
java.lang.String template,
java.lang.Object dataModel)
|
protected freemarker.template.Configuration |
getConfig(javax.faces.context.FacesContext context,
java.lang.String cacheParamName)
Retrieve the current configuration or if no instance exists create a new one. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultTemplateEncoder
public DefaultTemplateEncoder()
encodeTemplate
public void encodeTemplate(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
javax.faces.render.Renderer renderer,
java.lang.String template,
java.lang.Object dataModel)
throws java.io.IOException
- Specified by:
encodeTemplate
in interface TemplateEncoder
- Throws:
java.io.IOException
getConfig
protected freemarker.template.Configuration getConfig(javax.faces.context.FacesContext context,
java.lang.String cacheParamName)
- Retrieve the current configuration or if no instance exists create a new one.
- Parameters:
context
- The current FacesContextcacheParamName
- the variable used to save and retrieve on application scope the current template configuration
- Returns:
createConfig
protected freemarker.template.Configuration createConfig(javax.faces.context.FacesContext context)
Copyright © 2011 The Apache Software Foundation. All Rights Reserved.