com.acsinet_solutions.cetia4.tags
Class TextFieldTag

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
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
Direct Known Subclasses:
DateFieldTag, DecimalFieldTag, HiddenTag, RadioTag, TimeFieldTag

public class TextFieldTag
extends LogTagSupport

Class that implements a simple text field class, and also serves as base to other input classes.

Author:
Santiago Arriaga
See Also:
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
TextFieldTag()
          Create a basic TextField tag
TextFieldTag(java.lang.String type)
          Protected constructor
 
Method Summary
 int doEndTag()
           
 int doStartTag()
           
protected  org.apache.ecs.html.Input getInputTag()
          Input tag reference for subclasses
protected  java.lang.String getValueFromParentForm()
          Get the value of the property from the parent form as a String, if it is set there.
 void setEnabled(java.lang.Object enabled)
          Sets the enabled flag
 void setName(java.lang.String name)
          Sets the name.
protected  java.lang.String setupValue(java.lang.Object value)
          Setup the given object and return a suitable value.
 void setValue(java.lang.Object value)
          Sets the value.
protected  void writeInputTag(java.lang.String value)
          Write down the input tag to the JSP output
protected  void writeTag(javax.servlet.jsp.JspWriter writer)
          Write the tag
 
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

TextFieldTag

public TextFieldTag()
Create a basic TextField tag


TextFieldTag

public TextFieldTag(java.lang.String type)
Protected constructor

Parameters:
type - The type of the input tag
Method Detail

setName

public void setName(java.lang.String name)
Sets the name.


setValue

public void setValue(java.lang.Object value)
Sets the value.

Parameters:
value - The value to set

setEnabled

public void setEnabled(java.lang.Object enabled)
Sets the enabled flag


doStartTag

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

doEndTag

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

writeTag

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

Throws:
java.io.IOException

getInputTag

protected final org.apache.ecs.html.Input getInputTag()
Input tag reference for subclasses


setupValue

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

Throws:
javax.servlet.jsp.JspException

writeInputTag

protected void writeInputTag(java.lang.String value)
                      throws javax.servlet.jsp.JspException
Write down the input tag to the JSP output

Throws:
javax.servlet.jsp.JspException

getValueFromParentForm

protected final java.lang.String getValueFromParentForm()
                                                 throws javax.servlet.jsp.JspException
Get the value of the property from the parent form as a String, if it is set there. If not found, an empty String is returned. This method always returns not null values.

Throws:
javax.servlet.jsp.JspException