com.acsinet_solutions.cetia4.tags
Class DateFieldTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by com.acsinet_solutions.cetia4.tags.support.LogTagSupport
          extended by com.acsinet_solutions.cetia4.tags.TextFieldTag
              extended by com.acsinet_solutions.cetia4.tags.DateFieldTag
All Implemented Interfaces:
java.io.Serializable, javax.servlet.jsp.tagext.DynamicAttributes, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.Tag, javax.servlet.jsp.tagext.TryCatchFinally

public final class DateFieldTag
extends TextFieldTag

Dynamic text field input tag for Date displaying. The use of this tag requires some JavaScript files, and images and CSS styles to be set at specific locations on the application web content path. See examples to obtain these files and check their location. Scripts may be included in a page using the InitTag class with writeScripts="true".

Author:
Santiago Arriaga
See Also:
InitTag, Serialized Form

Field Summary
 
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
id, pageContext
 
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
DateFieldTag()
          Set the size of the tag at 10.
 
Method Summary
 int doEndTag()
           
 void setFormat(java.lang.String format)
          Set the date format
protected  java.lang.String setupValue(java.lang.Object value)
          This default implementation converts the value to a not-null String.
protected  void writeTag(javax.servlet.jsp.JspWriter writer)
          Write the tag
 
Methods inherited from class com.acsinet_solutions.cetia4.tags.TextFieldTag
doStartTag, getInputTag, getValueFromParentForm, setEnabled, setName, setValue, writeInputTag
 
Methods inherited from class com.acsinet_solutions.cetia4.tags.support.LogTagSupport
doCatch, doFinally, fillDynamicValues, fillDynamicValues, getConfiguration, getDynamicAttributes, getLocale, getLogger, getPortalPath, getRequest, getServletContext, getSession, setDynamicAttribute
 
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DateFieldTag

public DateFieldTag()
Set the size of the tag at 10.

Method Detail

setFormat

public void setFormat(java.lang.String format)
Set the date format


setupValue

protected java.lang.String setupValue(java.lang.Object value)
                               throws javax.servlet.jsp.JspException
This default implementation converts the value to a not-null String.

Overrides:
setupValue in class TextFieldTag
Throws:
javax.servlet.jsp.JspException

writeTag

protected void writeTag(javax.servlet.jsp.JspWriter writer)
                 throws java.io.IOException
Write the tag

Overrides:
writeTag in class TextFieldTag
Throws:
java.io.IOException

doEndTag

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