org.makumba.list.tags
Class ResultListTag
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
org.makumba.analyser.AnalysableTag
org.makumba.commons.tags.GenericMakumbaTag
org.makumba.list.tags.GenericListTag
org.makumba.list.tags.QueryTag
org.makumba.list.tags.ResultListTag
- All Implemented Interfaces:
- Serializable, IterationTag, JspTag, Tag
public class ResultListTag
- extends QueryTag
This class is a specially tailored mak:list to work on the results from a search form. It provides short-cuts to set
the from, variableFrom and where parameters from the request attributes set by the search form.
- Version:
- $Id: ResultListTag.java,v 1.1 Oct 24, 2007 1:04:02 PM mayer Exp $
- Author:
- Rudolf Mayer
- See Also:
SearchTag,
QueryTag,
Serialized Form
| Fields inherited from class org.makumba.list.tags.QueryTag |
authorize, countVar, editable, editPage, execution, limit, logicClass, maxCountVar, offset, one, queryProps, separator, standardCountVar, standardLastCountVar, standardMaxCountVar, standardMaxResultsContext, standardMaxResultsKey, standardMaxResultsVar, upperCount, upperMaxCount, upperMaxResults, zero |
| Methods inherited from class org.makumba.list.tags.QueryTag |
allowsIdenticalKey, cacheQuery, canHaveBody, count, doAfterBody, doAnalyzedCleanup, doEndAnalyze, getEditable, getEditPage, getLimitInt, getLogicClass, getOffsetInt, getParentList, getParentListKey, getQuery, lastCount, maxCount, maxResults, onlyOuterListArgument, setAuthorize, setCountVar, setDefaultLimit, setEditable, setEditPage, setFrom, setGroupBy, setLimit, setLogicClass, setMaxCountVar, setNumberOfIterations, setOffset, setOrderBy, setSeparator, setVariableFrom, setWhere |
| Methods inherited from class org.makumba.commons.tags.GenericMakumbaTag |
doStartTag, getParams, initialiseState, setAddTitle, setCols, setConvertLinks, setDefault, setElementSeparator, setEllipsis, setEllipsisLength, setEmpty, setFormat, setHtml, setLabelSeparator, setLineSeparator, setLongLineLength, setMaxlength, setMaxLength, setOnClick, setOnDblClick, setOnKeyDown, setOnKeyPress, setOnKeyUp, setOnMouseDown, setOnMouseMove, setOnMouseOut, setOnMouseOver, setOnMouseUp, setRows, setSize, setStyle, setStyleClass, setStyleId, setTitle, setType, setType, setUrlEncode, toString |
| Methods inherited from class org.makumba.analyser.AnalysableTag |
addTagText, checkValidAttributeValues, getAnalyzedTag, getCurrentBodyTag, getPageCache, getPageContext, getPageTextInfo, getRunningTag, getTagKey, getTagText, getThreadTagStack, initializeThread, needPageCache, onlyInt, setTagDataAtAnalysis |
| Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setId, setPageContext, setParent, setValue |
ResultListTag
public ResultListTag()
setResultsFrom
public void setResultsFrom(String s)
doAnalyzedStartTag
public int doAnalyzedStartTag(PageCache pageCache)
throws LogicException,
JspException
- Description copied from class:
QueryTag
- Decides if there will be any tag iteration. The QueryExecution is found (and made if needed), and we check if
there are any results in the iterationGroup.
- Overrides:
doAnalyzedStartTag in class QueryTag
- Parameters:
pageCache - The page cache for the current page
- Returns:
- The tag return state as defined in the
Tag interface
- Throws:
LogicException
JspException- See Also:
QueryExecution
doStartAnalyze
public void doStartAnalyze(PageCache pageCache)
- Description copied from class:
QueryTag
- Starts the analysis of the tag, without knowing what tags follow it in the page. Defines a query, sets the types
of variables to "int".
- Overrides:
doStartAnalyze in class QueryTag
- Parameters:
pageCache - The page cache for the current page
setTagKey
public void setTagKey(PageCache pageCache)
- Description copied from class:
QueryTag
- Computes and set the tagKey. At analysis time, the listQuery is associated with the tagKey, and retrieved at
runtime. At runtime, the QueryExecution is discovered by the tag based on the tagKey.
- Overrides:
setTagKey in class QueryTag
- Parameters:
pageCache - The page cache for the current page- See Also:
AnalysableTag.doAnalyzedStartTag(org.makumba.analyser.PageCache),
AnalysableTag.doStartAnalyze(org.makumba.analyser.PageCache)
doAnalyzedEndTag
public int doAnalyzedEndTag(PageCache pageCache)
throws JspException
- Description copied from class:
QueryTag
- Cleans up variables, especially for the rootList.
- Overrides:
doAnalyzedEndTag in class QueryTag
- Parameters:
pageCache - The page cache for the current page
- Returns:
- The tag return state as defined in the
Tag interface in order to
continue evaluating the page.
- Throws:
JspException- See Also:
AnalysableTag.doEndTag()