nl.imsystems.atag.tags
Class ComponentTag

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.ComponentTag
All Implemented Interfaces:
Serializable, BodyTag, IterationTag, JspTag, Tag

public class ComponentTag
extends ATagBase

Tag handler for <a:component/> tag.

A <a:component/> tag is used to define the html souce of a component.
<a:component/> is always the root element of the jsp file that contains the component definition.

Attributes

This tag has no attributes.

Supported By

<a:component/> is always the root element of a jsp file.

Supports

<a:autoRefresh/>
<a:autoRefresh/> can be added to a component in order to automatically refresh the component at regular intervals.

Variables Exported

The following variables are available during the scope of a <a:component/> tag:

Name Type Description
id java.lang.String id attribute assigned to the refering reference. This is typically used as the id of the component.
Id java.lang.String As above with the first char capitalized.
name java.lang.String paramName attribute assigned to the refering reference. This value is typically used as the name of the component.
bindPath java.lang.String bind attribute assigned to the refering reference. This is used to dereference a model object from one of the scopes.
value java.lang.Object The object dereferenced by bindPath variable using PageContext.findAttribute().
params java.util.Properties User defined custom parameters added to the refering reference.

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
ComponentTag()
           
 
Method Summary
 int doEndTag()
           
 int doStartTag()
           
 void release()
           
 
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

ComponentTag

public ComponentTag()
Method Detail

doStartTag

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

doEndTag

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

release

public void release()
Specified by:
release in interface Tag
Overrides:
release in class BodyTagSupport