Home » tiles-2.2.1-src » org.apache.tiles.freemarker.renderer » [javadoc | source]
org.apache.tiles.freemarker.renderer
public class: FreeMarkerAttributeRenderer [javadoc | source]
java.lang.Object
   org.apache.tiles.renderer.impl.AbstractBaseAttributeRenderer
      org.apache.tiles.renderer.impl.AbstractTypeDetectingAttributeRenderer
         org.apache.tiles.freemarker.renderer.FreeMarkerAttributeRenderer

All Implemented Interfaces:
    TypeDetectingAttributeRenderer, TilesApplicationContextAware, AttributeRenderer, AttributeEvaluatorFactoryAware, TilesRequestContextFactoryAware

FreeMarker renderer for rendering FreeMarker templates as Tiles attributes. It is only usable under a Servlet environment, because it uses TilesFreemarkerServlet internally to forward the request.
To initialize it correctly, call #setParameter(String, String) for all the parameters that you want to set, and then call #commit() .
Fields inherited from org.apache.tiles.renderer.impl.AbstractBaseAttributeRenderer:
contextFactory,  applicationContext,  attributeEvaluatorFactory
Method from org.apache.tiles.freemarker.renderer.FreeMarkerAttributeRenderer Summary:
commit,   isRenderable,   setParameter,   write
Methods from org.apache.tiles.renderer.impl.AbstractTypeDetectingAttributeRenderer:
isRenderable
Methods from org.apache.tiles.renderer.impl.AbstractBaseAttributeRenderer:
getRequestContext,   isPermitted,   render,   setApplicationContext,   setAttributeEvaluatorFactory,   setRequestContextFactory,   write
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.tiles.freemarker.renderer.FreeMarkerAttributeRenderer Detail:
 public  void commit() 
    Commits the parameters and makes this renderer ready for the use.
 public boolean isRenderable(Object value,
    Attribute attribute,
    TilesRequestContext request) 
    {@inheritDoc}
 public  void setParameter(String key,
    String value) 
    Sets a parameter for the internal servlet.
 public  void write(Object value,
    Attribute attribute,
    TilesRequestContext request) throws IOException 
    {@inheritDoc}