nl.imsystems.atag.tags
Class AutoRefreshTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by javax.servlet.jsp.tagext.BodyTagSupport
          extended by nl.imsystems.atag.tags.ATagBase
              extended by nl.imsystems.atag.tags.ContainerBase
                  extended by nl.imsystems.atag.tags.AutoRefreshTag
All Implemented Interfaces:
Serializable, BodyTag, IterationTag, JspTag, Tag

public class AutoRefreshTag
extends ContainerBase

Tag handler for <a:autoRefresh/> tag.

This tag is used inside a component definition, and depending on the value of the interval attribute will cause the component to be automatically refereshed. An interval value of less than 1 disables auto refresh on the component.

Attributes

Name Required Default Description
interval Yes   Sets the time in seconds for auto refresh interval

Supported By

<a:component/>
<a:autoRefresh/> can only be placed inside a <a:component/> tag.

Supports

<a:param/>
<a:param/> tags can be added to <a:autoRefresh/> and will be posted back along with the auto refresh event.

Author:
kayvan

See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.servlet.jsp.tagext.BodyTagSupport
bodyContent
 
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
id, pageContext
 
Fields inherited from interface javax.servlet.jsp.tagext.BodyTag
EVAL_BODY_BUFFERED, EVAL_BODY_TAG
 
Fields inherited from interface javax.servlet.jsp.tagext.IterationTag
EVAL_BODY_AGAIN
 
Fields inherited from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
 
Constructor Summary
AutoRefreshTag()
           
 
Method Summary
 int doEndTag()
           
 int doStartTag()
          Default implementation that returns EVAL_BODY_BUFFERED.
 String getInterval()
           
 void setInterval(String interval)
           
 
Methods inherited from class nl.imsystems.atag.tags.ContainerBase
addAction, addDependent, addParam, addReference, compileActions, getActions, getActions, getContollerUrl, getDependentsList, getParams, getParamsCSV, getViewUrl, isParentDependent, release, setControllerUrl, setDependents, setViewUrl
 
Methods inherited from class nl.imsystems.atag.tags.ATagBase
getAlias, getATagContext, getContextPath, getNamingContext, getParentTag, getRefererId, getRequest, getResponse, getTagId, popContext, pushContext, resolveRelativeName
 
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport
doAfterBody, doInitBody, getBodyContent, getPreviousOut, setBodyContent
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.servlet.jsp.tagext.Tag
getParent, setPageContext, setParent
 

Constructor Detail

AutoRefreshTag

public AutoRefreshTag()
Method Detail

setInterval

public void setInterval(String interval)

getInterval

public String getInterval()

doStartTag

public int doStartTag()
               throws JspException
Description copied from class: ContainerBase
Default implementation that returns EVAL_BODY_BUFFERED.

Specified by:
doStartTag in interface Tag
Overrides:
doStartTag in class ContainerBase
Throws:
JspException

doEndTag

public int doEndTag()
             throws JspException
Specified by:
doEndTag in interface Tag
Overrides:
doEndTag in class BodyTagSupport
Throws:
JspException