org.dbforms.taglib
Class ConfTableDataTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by javax.servlet.jsp.tagext.BodyTagSupport
          extended by org.dbforms.taglib.AbstractScriptHandlerTag
              extended by org.dbforms.taglib.AbstractDbBaseHandlerTag
                  extended by org.dbforms.taglib.AbstractEmbeddedDataTag
                      extended by org.dbforms.taglib.ConfTableDataTag
All Implemented Interfaces:
Serializable, javax.servlet.jsp.tagext.BodyTag, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.Tag, javax.servlet.jsp.tagext.TryCatchFinally, ISqlFilter, IStaticDataList

public class ConfTableDataTag
extends AbstractEmbeddedDataTag
implements ISqlFilter, javax.servlet.jsp.tagext.TryCatchFinally

external data to be nested into radio, checkbox or select - tag! (useful only in conjunction with radio, checkbox or select - tag)

this tag provides data to radio, checkbox or select - tags. it may be used for cross-references to other tables.

this tag provides similar functionality to "TabData", but as it allows to use the table data given in the conf file and use a filter clause like in dbform tag

Author:
Henner Kollmann
See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.servlet.jsp.tagext.BodyTagSupport
bodyContent
 
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
id, pageContext
 
Fields inherited from interface javax.servlet.jsp.tagext.BodyTag
EVAL_BODY_BUFFERED, EVAL_BODY_TAG
 
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
ConfTableDataTag()
           
 
Method Summary
 void doFinally()
          reset tag state
protected  List fetchData(Connection con)
          returns Hashtable with data.
 String getFilter()
          DOCUMENT ME!
 String getForeignTable()
          DOCUMENT ME!
 String getOrderBy()
          DOCUMENT ME!
 String getSqlFilter()
           
 String getStoreField()
          DOCUMENT ME!
 void setFilter(String string)
          DOCUMENT ME!
 void setForeignTable(String foreignTable)
          DOCUMENT ME!
 void setOrderBy(String orderBy)
          DOCUMENT ME!
 void setSqlFilter(String sqlFilter)
           
 void setStoreField(String storeField)
          DOCUMENT ME!
 
Methods inherited from class org.dbforms.taglib.AbstractEmbeddedDataTag
addElement, doStartTag, formatEmbeddedResultRows, getDbConnectionName, getDisableCache, getEscaper, getFormatClass, getName, setDbConnectionName, setDisableCache, setFormat, setFormatClass, setName, useCache
 
Methods inherited from class org.dbforms.taglib.AbstractDbBaseHandlerTag
customFormat, escapeHTML, getCustomFormatter, getDefaultValue, getEscaperClass, getField, getFieldObject, getFieldValue, getFormattedFieldValue, getFormatter, getFormFieldDefaultValue, getFormFieldName, getFormFieldValue, getLocale, getMaxlength, getParentForm, getPattern, getReadOnlyStyleClass, getStyleClass, hasReadOnlySet, renderOldValueHtmlInputField, renderPatternHtmlInputField, setCustomFormatter, setDefaultValue, setEscaperClass, setField, setFieldName, setMaxlength, setNullFieldValue, setParent, setPattern, setReadOnly, setReadOnlyStyleClass, typicalDefaultValue, writeOutSpecialValues
 
Methods inherited from class org.dbforms.taglib.AbstractScriptHandlerTag
doCatch, getAccessKey, getConfig, getOnBlur, getOnChange, getOnClick, getOnDblClick, getOnFocus, getOnKeyDown, getOnKeyPress, getOnKeyUp, getOnMouseDown, getOnMouseMove, getOnMouseOut, getOnMouseOver, getOnMouseUp, getOnSelect, getStyle, getTabIndex, getTitle, prepareEventHandlers, prepareStyles, setAccessKey, setOnBlur, setOnChange, setOnClick, setOnDblClick, setOnFocus, setOnKeyDown, setOnKeyPress, setOnKeyUp, setOnMouseDown, setOnMouseMove, setOnMouseOut, setOnMouseOver, setOnMouseUp, setOnSelect, setStyle, setStyleClass, setTabIndex, setTitle
 
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport
doAfterBody, doEndTag, doInitBody, getBodyContent, getPreviousOut, release, setBodyContent
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.servlet.jsp.tagext.TryCatchFinally
doCatch
 
Methods inherited from interface javax.servlet.jsp.tagext.Tag
getParent, setPageContext
 

Constructor Detail

ConfTableDataTag

public ConfTableDataTag()
Method Detail

setFilter

public void setFilter(String string)
DOCUMENT ME!

Parameters:
string -

getFilter

public String getFilter()
DOCUMENT ME!

Returns:
the filter

setForeignTable

public void setForeignTable(String foreignTable)
DOCUMENT ME!

Parameters:
foreignTable - DOCUMENT ME!

getForeignTable

public String getForeignTable()
DOCUMENT ME!

Returns:
DOCUMENT ME!

setOrderBy

public void setOrderBy(String orderBy)
DOCUMENT ME!

Parameters:
orderBy - DOCUMENT ME!

getOrderBy

public String getOrderBy()
DOCUMENT ME!

Returns:
DOCUMENT ME!

setStoreField

public void setStoreField(String storeField)
DOCUMENT ME!

Parameters:
storeField - DOCUMENT ME!

getStoreField

public String getStoreField()
DOCUMENT ME!

Returns:
DOCUMENT ME!

fetchData

protected List fetchData(Connection con)
                  throws SQLException
returns Hashtable with data. Its keys represent the "value"-fields for the DataContainer-Tag, its values represent the visible fields for the Multitags. (DataContainer are: select, radio, checkbox and a special flavour of Label).

Specified by:
fetchData in class AbstractEmbeddedDataTag
Parameters:
con - DOCUMENT ME!
Returns:
DOCUMENT ME!
Throws:
SQLException

getSqlFilter

public String getSqlFilter()
Specified by:
getSqlFilter in interface ISqlFilter

setSqlFilter

public void setSqlFilter(String sqlFilter)
Specified by:
setSqlFilter in interface ISqlFilter

doFinally

public void doFinally()
reset tag state

Specified by:
doFinally in interface javax.servlet.jsp.tagext.TryCatchFinally
Overrides:
doFinally in class AbstractEmbeddedDataTag
See Also:
TryCatchFinally.doFinally()


Copyright © 2002-2006 DbForms. All Rights Reserved.