com.taggercat.tags
Class HTMLTextAreaElementTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by com.taggercat.tags.AbstractExpEvalTag
          extended by com.taggercat.tags.AbstractHTMLInputTag
              extended by com.taggercat.tags.HTMLTextElementTag
                  extended by com.taggercat.tags.HTMLTextAreaElementTag
All Implemented Interfaces:
com.taggercat.el.ELPropertyResolver, java.io.Serializable, javax.servlet.jsp.tagext.DynamicAttributes, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.Tag

public class HTMLTextAreaElementTag
extends HTMLTextElementTag

This tag returns a HTML text area field with the value of the named field for the data source.

The generated text area element is automatically disabled if:

  1. the user does not have update permissions on the specified data source and field
  2. or there is no tcEntity in the resultset of the specified data source
  3. or there is a condition expression, and it evaluates to false

If an error has occurred (usually preventing a save) on this request/response cycle then the data from the request, and not from the model is used. Therefore, the user will not lose the data they just entered when errors occur. If there is no corresponding parameter on the request, then the value from the data source is used.

See Also:
Serialized Form
 

Field Summary
 
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
HTMLTextAreaElementTag()
           
 
Method Summary
 int doEndTag()
          Resets the tags internal state.
 java.lang.String makeElement(Model model, DataSource ds, TCEntity tcEntity)
          Creates the HTML TextArea input element.
 void setCols(int cols)
          Sets the col width for the control.
 void setRows(int rows)
          Sets the rows in the control.
 void setWrap(java.lang.String wrap)
          Sets the wrap style.
 
Methods inherited from class com.taggercat.tags.HTMLTextElementTag
isPassword, setMaxlength, setPassword, setSize, setValue
 
Methods inherited from class com.taggercat.tags.AbstractHTMLInputTag
addBaseAttributes, addBaseEnabledAttributes, doStartTag, getAccesskey, getAjaxValidationJSFunction, getCondition, getDisabled, getDsn, getField, getName, getOnblur, getOnchange, getOnclick, getOndblclick, getOnfocus, getOnkeydown, getOnkeypress, getOnkeyup, getOnmousedown, getOnmousemove, getOnmouseout, getOnmouseover, getOnmouseup, getOnselect, getRowID, getStyle, getStyleclass, getStyleid, getTabindex, getTitle, getValue, isQbf, isShowDisabled, isXHTMLtag, setAccesskey, setAjaxValidationJSFunction, setCondition, setDisabled, setDsn, setDynamicAttribute, setField, setFormat, setId, setName, setNulls, setOnblur, setOnchange, setOnclick, setOndblclick, setOnfocus, setOnkeydown, setOnkeypress, setOnkeyup, setOnmousedown, setOnmousemove, setOnmouseout, setOnmouseover, setOnmouseup, setOnselect, setPreserveHTML, setQbf, setReadonly, setRowID, setShowDisabled, setStyle, setStyleclass, setStyleid, setTabindex, setTitle, setValue
 
Methods inherited from class com.taggercat.tags.AbstractExpEvalTag
getModel, resolveProperty, setScope, setVar
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setPageContext, setParent, setValue
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HTMLTextAreaElementTag

public HTMLTextAreaElementTag()
Method Detail

doEndTag

public int doEndTag()
             throws javax.servlet.jsp.JspException
Resets the tags internal state.

Specified by:
doEndTag in interface javax.servlet.jsp.tagext.Tag
Overrides:
doEndTag in class HTMLTextElementTag
Throws:
javax.servlet.jsp.JspException
Returns:
EVAL_PAGE

makeElement

public java.lang.String makeElement(Model model,
                                    DataSource ds,
                                    TCEntity tcEntity)
                             throws javax.servlet.jsp.JspException
Creates the HTML TextArea input element.

Overrides:
makeElement in class HTMLTextElementTag
Throws:
javax.servlet.jsp.JspException
Parameters:
model - the model
ds - the data source
tcEntity - the tcEntity
Returns:
the completed HTML text area element

setCols

public void setCols(int cols)
Sets the col width for the control.

Parameters:
cols - the number of columns

setRows

public void setRows(int rows)
Sets the rows in the control.

Parameters:
rows - the rows

setWrap

public void setWrap(java.lang.String wrap)
Sets the wrap style.

Parameters:
wrap - the wrap style