org.makumba.forms.tags
Class SearchFieldTag
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
org.makumba.analyser.AnalysableElement
org.makumba.analyser.AnalysableTag
org.makumba.commons.tags.GenericMakumbaTag
org.makumba.forms.tags.BasicValueTag
org.makumba.forms.tags.InputTag
org.makumba.forms.tags.SearchFieldTag
- All Implemented Interfaces:
- Serializable, BodyTag, IterationTag, JspTag, Tag
public class SearchFieldTag
- extends InputTag
This tag implements an input field to be used within search forms. It slightly changes some of the functionality of
InputTag
, e.g. among others:
- Not needing the name field, but getting the name & type of the input from the first argument in the fields
attribute of
CriterionTag
, using CriterionTag.getInputName()
>
- Allows to change a select input to be forced to a single/multiple select using the 'forceInputStyle' attribute.
- Allows for range searching, triggered by the the 'role' attribute, requiring 'isRange' attribute in
CriterionTag
to be set to 'true'
- Version:
- $Id: SearchFieldTag.java,v 1.1 Oct 21, 2007 1:29:06 PM rudi Exp $
- Author:
- Rudolf Mayer
- See Also:
- Serialized Form
Methods inherited from class org.makumba.forms.tags.InputTag |
checkBodyContentForNonWhitespace, computedValue, doAnalyzedCleanup, doAnalyzedStartTag, doEndAnalyze, doInitBody, getTypeFromContext, initialiseState, setAccessKey, setAutoComplete, setBodyContent, setCalendarEditor, setCalendarEditorLink, setClearDefault, setDataType, setDisabled, setDisplay, setField, setName, setNameVar, setNullOption, setOnBlur, setOnChange, setOnFocus, setOnSelect, setSize, setStepSize, setTabIndex, toString |
Methods inherited from class org.makumba.commons.tags.GenericMakumbaTag |
doStartTag, getParams, isAttribute, setAddTitle, setCols, setDefault, setElementSeparator, setEllipsis, setEllipsisLength, setEmpty, setFormat, setHtml, setLabelSeparator, setLineSeparator, setLongLineLength, setMaxlength, setMaxLength, setOnClick, setOnDblClick, setOnKeyDown, setOnKeyPress, setOnKeyUp, setOnMouseDown, setOnMouseMove, setOnMouseOut, setOnMouseOver, setOnMouseUp, setRows, setStyle, setStyleClass, setStyleId, setTitle, setType, setType, setUrlEncode |
Methods inherited from class org.makumba.analyser.AnalysableTag |
addTagText, canHaveBody, checkAttributeValues, doEndTag, getElementData, getPageContext, getPageTextInfo, getTagKey, getTagText, needPageCache, notEmpty, onlyInt, registerAttributeValues, setTagDataAtAnalysis |
Methods inherited from class org.makumba.analyser.AnalysableElement |
checkTagFound, discardJSPParsingData, getAnalyzedElementData, getCurrentBodyTagData, getElementAfter, getElementBefore, getPageCache, getPageCache, getRunningElementData, getTagByAttribute, getTagById, getThreadElementStack, initializeThread, keepAnalysisState, setAnalyzedElementData, setRunningElementData |
Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
doAfterBody, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setId, setPageContext, setParent, setValue |
allowedSelectTypes
public static final String[] allowedSelectTypes
forceInputStyle
protected String forceInputStyle
SearchFieldTag
public SearchFieldTag()
setForceInputStyle
public void setForceInputStyle(String forceInputStyle)
getCriterionTag
protected CriterionTag getCriterionTag()
doStartAnalyze
public void doStartAnalyze(PageCache pageCache)
- Determines the ValueComputer and associates it with the tagKey
- Overrides:
doStartAnalyze
in class InputTag
- Parameters:
pageCache
- the page cache of the current page
doAnalyzedEndTag
public int doAnalyzedEndTag(PageCache pageCache)
throws JspException,
LogicException
- Description copied from class:
AnalysableTag
- makumba-specific endTag
- Overrides:
doAnalyzedEndTag
in class InputTag
- Parameters:
pageCache
- The page cache for the current page
- Throws:
JspException
LogicException
- See Also:
AnalysableTag.doEndTag()
setTagKey
public void setTagKey(PageCache pageCache)
- Description copied from class:
InputTag
- Sets tagKey to uniquely identify this tag. Called at analysis time before doStartAnalyze() and at runtime before
doMakumbaStartTag()
- Overrides:
setTagKey
in class InputTag
- Parameters:
pageCache
- The page cache for the current page- See Also:
AnalysableTag.doAnalyzedStartTag(org.makumba.analyser.PageCache)
,
AnalysableTag.doStartAnalyze(org.makumba.analyser.PageCache)
setRole
public void setRole(String role)
allowsIdenticalKey
public boolean allowsIdenticalKey()
- Description copied from class:
AnalysableTag
- Determines whether the tag can have the same key as others in the page
- Overrides:
allowsIdenticalKey
in class AnalysableTag
- Returns:
true
if the tag is allowed to have the same key as others in the page, false
otherwise
registerPossibleAttributeValues
protected void registerPossibleAttributeValues()
- Description copied from class:
AnalysableTag
- Override this in order to register possible attribute values using
AnalysableTag.registerAttributeValues(String, String...)
. The registered attributes are checked before
AnalysableTag.doStartAnalyze(PageCache)
and throw a ProgrammerError
is thrown if the provided value is not
allowed.
- Overrides:
registerPossibleAttributeValues
in class AnalysableTag