com.taggercat.template.tags
Class DataFieldCaptionTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by com.taggercat.template.tags.AbstractDataFieldTag
          extended by com.taggercat.template.tags.DataFieldCaptionTag
All Implemented Interfaces:
java.io.Serializable, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.Tag

public class DataFieldCaptionTag
extends AbstractDataFieldTag

This tag returns the Caption for the current datafield. If the field has no specified caption, then the field's name is used as the caption. If the field name is used for the caption, then by default, the name is pretty printed. Examples:

  1. FIRST_NAME is printed as First Name
  2. LoginID is printed as Login Id
  3. ZIP_CODE is printed as ZIP Code
  4. AddressLine is printed as Address Line

You can turn off the pretty printing of name derived Captions by setting the tag's prettyPrint attribute = "false".

See Also:
Serialized Form
 

Field Summary
 
Fields inherited from class com.taggercat.template.tags.AbstractDataFieldTag
TAG_GEN_CONFIG_CACHE_KEY, TAG_GEN_CONFIG_PREFIX
 
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
DataFieldCaptionTag()
           
 
Method Summary
 int doEndTag()
           
 int doStartTag()
          Sends the value of the data field to the page.
 java.lang.String getDsn()
           
 boolean isDynamic()
           
 void setDsn(java.lang.String dsn)
           
 void setDynamic(boolean dynamic)
           
 void setExtProperty(java.lang.String extProperty)
           
 void setShowRequiredIndicator(boolean showRequired)
           
 
Methods inherited from class com.taggercat.template.tags.AbstractDataFieldTag
setEntityName, setEntityObjectAttribute, setPrettyPrint, setPropertyName
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setId, setPageContext, setParent, setValue
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataFieldCaptionTag

public DataFieldCaptionTag()
Method Detail

doEndTag

public int doEndTag()
             throws javax.servlet.jsp.JspException
Specified by:
doEndTag in interface javax.servlet.jsp.tagext.Tag
Overrides:
doEndTag in class AbstractDataFieldTag
Throws:
javax.servlet.jsp.JspException

doStartTag

public int doStartTag()
               throws javax.servlet.jsp.JspException
Description copied from class: AbstractDataFieldTag
Sends the value of the data field to the page.

Specified by:
doStartTag in interface javax.servlet.jsp.tagext.Tag
Overrides:
doStartTag in class AbstractDataFieldTag
Throws:
javax.servlet.jsp.JspException
Returns:
SKIP_BODY

setShowRequiredIndicator

public void setShowRequiredIndicator(boolean showRequired)

setExtProperty

public void setExtProperty(java.lang.String extProperty)

isDynamic

public boolean isDynamic()

setDynamic

public void setDynamic(boolean dynamic)

getDsn

public java.lang.String getDsn()

setDsn

public void setDsn(java.lang.String dsn)