DefaultableDataSourceTag Class

com.bea.wlw.netui.tags
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

Field Summary

   
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
 
Fields from  javax.servlet.jsp.tagext.BodyTagSupport
bodyContent
 
Fields from  javax.servlet.jsp.tagext.TagSupport
id, pageContext
 
Fields from interface javax.servlet.jsp.tagext.BodyTag
EVAL_BODY_BUFFERED, EVAL_BODY_TAG
 
Fields from interface javax.servlet.jsp.tagext.IterationTag
EVAL_BODY_AGAIN
 
Fields from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
 

Constructor Summary

DefaultableDataSourceTag()

 

Method Summary

public String
getDefaultValue()
Gets the default value (can be an expression).
protected void
localRelease()
Release any acquired resources.
public void
setDefaultValue(String defaultValue)
Sets the default value (can be an expression).
 
Methods from  com.bea.wlw.netui.tags.DataSourceTag
getDataSource, setDataSource
 
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.BodyTagSupport
doAfterBody, doEndTag, doInitBody, doStartTag, getBodyContent, getPreviousOut, release, setBodyContent
 
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
   
Methods from interface javax.servlet.jsp.tagext.BodyTag
doInitBody, setBodyContent
 
Methods from interface javax.servlet.jsp.tagext.IterationTag
doAfterBody
 
Methods from interface javax.servlet.jsp.tagext.Tag
doEndTag, doStartTag, getParent, release, setPageContext, setParent
 

Constructor Detail

DefaultableDataSourceTag

public DefaultableDataSourceTag()
 

Method Detail

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