org.dbforms.taglib
Class DbSearchTag

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.DbSearchTag
All Implemented Interfaces:
Serializable, javax.servlet.jsp.tagext.BodyTag, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.Tag, javax.servlet.jsp.tagext.TryCatchFinally
Direct Known Subclasses:
DbSearchCheckBoxTag, DbSearchComboTag

public class DbSearchTag
extends AbstractDbBaseHandlerTag
implements javax.servlet.jsp.tagext.TryCatchFinally

renders a input field for searching with special default search modes.

example:

<input type="hidden" name="searchalgo_0_1" value="weakEnd"/> <input type="hidden" name="searchmode_0_1" value="AND"/> <input type="text" name="search_0_1"/> searchalgo and searchmode are set by parameter.

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
DbSearchTag()
           
 
Method Summary
 int doEndTag()
          DOCUMENT ME!
 void doFinally()
          DOCUMENT ME!
 String getDefault()
          DOCUMENT ME!
protected  String getFormFieldName()
          generates the decoded name for the html-widget.
 String getHidden()
           
 String getSearchAlgo()
          DOCUMENT ME!
 String getSearchMode()
          DOCUMENT ME!
protected  String RenderHiddenFields(Field f)
          DOCUMENT ME!
 void setDefault(String value)
          DOCUMENT ME!
 void setHidden(String hidden)
           
 void setSearchAlgo(String searchAlgo)
          DOCUMENT ME!
 void setSearchMode(String searchMode)
          DOCUMENT ME!
 
Methods inherited from class org.dbforms.taglib.AbstractDbBaseHandlerTag
customFormat, escapeHTML, getCustomFormatter, getDefaultValue, getEscaper, getEscaperClass, getField, getFieldObject, getFieldValue, getFormattedFieldValue, getFormatter, getFormFieldDefaultValue, getFormFieldValue, getLocale, getMaxlength, getName, 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, doInitBody, doStartTag, 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

DbSearchTag

public DbSearchTag()
Method Detail

setDefault

public void setDefault(String value)
DOCUMENT ME!

Parameters:
value - DOCUMENT ME!

getDefault

public String getDefault()
DOCUMENT ME!

Returns:
DOCUMENT ME!

setSearchAlgo

public void setSearchAlgo(String searchAlgo)
DOCUMENT ME!

Parameters:
searchAlgo - DOCUMENT ME!

getSearchAlgo

public String getSearchAlgo()
DOCUMENT ME!

Returns:
DOCUMENT ME!

setSearchMode

public void setSearchMode(String searchMode)
DOCUMENT ME!

Parameters:
searchMode - DOCUMENT ME!

getSearchMode

public String getSearchMode()
DOCUMENT ME!

Returns:
DOCUMENT ME!

doEndTag

public int doEndTag()
             throws javax.servlet.jsp.JspException
DOCUMENT ME!

Specified by:
doEndTag in interface javax.servlet.jsp.tagext.Tag
Overrides:
doEndTag in class javax.servlet.jsp.tagext.BodyTagSupport
Returns:
DOCUMENT ME!
Throws:
javax.servlet.jsp.JspException - DOCUMENT ME!
javax.servlet.jsp.JspException - DOCUMENT ME!

getFormFieldName

protected String getFormFieldName()
Description copied from class: AbstractDbBaseHandlerTag
generates the decoded name for the html-widget.

Overrides:
getFormFieldName in class AbstractDbBaseHandlerTag
Returns:
DOCUMENT ME!

doFinally

public void doFinally()
DOCUMENT ME!

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

RenderHiddenFields

protected String RenderHiddenFields(Field f)
DOCUMENT ME!

Parameters:
f - DOCUMENT ME!
Returns:
DOCUMENT ME!

getHidden

public String getHidden()

setHidden

public void setHidden(String hidden)


Copyright © 2002-2006 DbForms. All Rights Reserved.