DefaultableDataSourceTag Class
- public abstract class DefaultableDataSourceTag
extends DataSourceTag
Abstract tag class that adds support for a default value on the tag. The default value is used
if the dataSource or value of the tag is null.
For example, would display "bar"
for the label if the expression {actionForm.foo} resolved to null.
-
Hierarchy
-
Object
TagSupport
BodyTagSupport
AbstractBaseTag
DataSourceTag
DefaultableDataSourceTag
-
All Implemented Interfaces
-
BodyTag
, IterationTag
, Serializable
, Tag
-
Direct Known Subclasses
-
CheckBox
, OptionsDataSourceTag
, TextArea
, TextBox
Fields from com.bea.wlw.netui.tags.AbstractBaseTag |
ATTR_GENERAL , ATTR_GENERAL_EXPRESSION , ATTR_JAVASCRIPT , ATTR_STYLE , CLASS , ID , JAVASCRIPT_STATUS , NAME , NETUI_UNIQUE_CNT , ONCLICK , ONDBLCLICK , ONKEYDOWN , ONKEYPRESS , ONKEYUP , ONMOUSEDOWN , ONMOUSEMOVE , ONMOUSEOUT , ONMOUSEOVER , ONMOUSEUP , STYLE , TABINDEX
|
Methods from com.bea.wlw.netui.tags.AbstractBaseTag |
addTagIdMapping , evaluateAttributeToString , filter , filter , getJavaScriptUtils , getNearestForm , getScriptReporter , getTagName , getUserLocale , localRelease , registerTagError , release , renderAttribute , rewriteName , write
|
Methods from javax.servlet.jsp.tagext.TagSupport |
doAfterBody, doEndTag, doStartTag, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setId, setPageContext, setParent, setValue |
Methods from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultableDataSourceTag
public DefaultableDataSourceTag()
getDefaultValue() Method
public String
getDefaultValue()
Gets the default value (can be an expression).
Returns
- the default value
localRelease() Method
protected void localRelease()
Release any acquired resources.
-
Overrides
-
DataSourceTag.localRelease()
setDefaultValue(String) Method
public void setDefaultValue(String
defaultValue)
throws JspException
Sets the default value (can be an expression).
Parameters
-
defaultValue
- - the default value
Exceptions
-
JspException