org.loom.tags.core
Class CacheTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.SimpleTagSupport
      extended by org.loom.tags.AbstractTag
          extended by org.loom.tags.core.CacheTag
All Implemented Interfaces:
javax.servlet.jsp.tagext.DynamicAttributes, javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.SimpleTag, LoomTag

@Tag(dynamicAttributes=false,
     bodyContent=SCRIPTLESS,
     example="<l:cache id=\"cached-menu\">\n\t<l:menu> ... </l:menu>\n</l:cache>")
public class CacheTag
extends AbstractTag

Cache the tag contents. The tag body will be skipped if there is usable content in the cache.


Field Summary
 
Fields inherited from class org.loom.tags.AbstractTag
expressionLanguageProxy, loomServletRequestFactory, out, repository, request, response
 
Constructor Summary
CacheTag()
           
 
Method Summary
 void doTagImpl()
          The method that must be implemented by the child class
 void setId(java.lang.String id)
           
 void setScope(java.lang.String scope)
          Scope where the cached value will be stored.
 void setUseLocale(boolean useLocale)
           
 
Methods inherited from class org.loom.tags.AbstractTag
createWriterWrapper, doBody, doBufferedBody, doTag, endTag, evaluateExpression, getActionProperty, getAncestorWithClass, getBufferedBody, getExtendedAttributes, getMessagesRepository, getPageContext, getRequest, getResponse, getScopedAttribute, getWriter, initTag, printParentAttributes, removeScopedAttribute, setDynamicAttribute, setExtendedAttribute, setJspContext, setRequest, setResponse, setScopedAttribute, setWriter
 
Methods inherited from class javax.servlet.jsp.tagext.SimpleTagSupport
findAncestorWithClass, getJspBody, getJspContext, getParent, setJspBody, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CacheTag

public CacheTag()
Method Detail

doTagImpl

public void doTagImpl()
               throws javax.servlet.jsp.JspException,
                      java.io.IOException
Description copied from class: AbstractTag
The method that must be implemented by the child class

Specified by:
doTagImpl in class AbstractTag
Throws:
javax.servlet.jsp.JspException
java.io.IOException

setId

public void setId(java.lang.String id)

setUseLocale

public void setUseLocale(boolean useLocale)

setScope

@Attribute
public void setScope(java.lang.String scope)
Scope where the cached value will be stored. Possible values are session (default) and application.