org.mmbase.bridge.jsp.taglib
Class ListTag
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.tagext.BodyTagSupport
org.mmbase.bridge.jsp.taglib.ContextReferrerTag
org.mmbase.bridge.jsp.taglib.CloudReferrerTag
org.mmbase.bridge.jsp.taglib.NodeReferrerTag
org.mmbase.bridge.jsp.taglib.AbstractNodeProviderTag
org.mmbase.bridge.jsp.taglib.AbstractNodeListTag
org.mmbase.bridge.jsp.taglib.ListTag
- All Implemented Interfaces:
- Serializable, LoopTag, BodyTag, IterationTag, JspTag, Tag, TryCatchFinally, ClusterNodeProvider, FunctionContainerOrNodeProvider, ContextProvider, ListProvider, NodeProvider, TagIdentifier
- Direct Known Subclasses:
- RelatedTag
public class ListTag
- extends AbstractNodeListTag
- implements ClusterNodeProvider
ListTag, provides functionality for listing cluster nodes
('multilevel' search) in MMBase
- Version:
- $Id: ListTag.java 35335 2009-05-21 08:14:41Z michiel $
- Author:
- Kees Jongenburger, Michiel Meeuwissen, Pierre van Rooden
- See Also:
- Serialized Form
| Methods inherited from class org.mmbase.bridge.jsp.taglib.AbstractNodeListTag |
doAfterBody, doEndTag, doFinally, doStartTagHelper, getContextContainer, getCurrent, getGeneratingQuery, getIndex, getIndexOffset, getLoopStatus, getNodeList, getNodesAndTrim, getNodesAndTrim, getReturnList, isChanged, remove, setAdd, setComparator, setConstraints, setDirections, setMax, setOffset, setOrderby, setRemove, setRetain, setReturnValues, setReturnValues, setUsetransaction, setVarStatus, size |
| Methods inherited from class org.mmbase.bridge.jsp.taglib.NodeReferrerTag |
fillStandardParameters, findNode, findNodeProvider, findNodeProvider, getCloudVar, getLocale, getNode, getNode, getNodeFromPageContext, initTag, setElement, setNode |
| Methods inherited from class org.mmbase.bridge.jsp.taglib.ContextReferrerTag |
appendMoreParameters, doCatch, findLoopOrQuery, findParentTag, findParentTag, findWriter, findWriter, getAttribute, getAttribute, getAttributeBoolean, getAttributeInteger, getAttributeInteger, getAttributeValue, getContentTag, getContextProvider, getContextTag, getCurrentBlock, getDefaultLocale, getEscapedValue, getFormTag, getId, getLocaleFromContext, getObject, getObjectConditional, getPageContext, getPageContextTag, getQuery, getReferid, getString, getTaglibVersion, getThreadPageContext, getTimeZone, getWriterValue, haveBody, release, setContext, setEscape, setId, setListdelimiter, setPageContext, setPageContextOnly, setReferid, setVartype, setWrite, setWriter |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
nodes
protected Attribute nodes
path
protected Attribute path
distinct
protected Attribute distinct
search
protected Attribute search
fields
protected Attribute fields
container
protected Attribute container
ListTag
public ListTag()
setFields
public void setFields(String fields)
throws JspTagException
- Parameters:
fields - a comma separated list of fields of the nodes.
- Throws:
JspTagException
setContainer
public void setContainer(String c)
throws JspTagException
- Throws:
JspTagException
setNodes
public void setNodes(String nodes)
throws JspTagException
- Sets the nodes to start the search with.
The value '-1' interpreted as
null, whcih indicates no
predefined startnodes are sued (a more general search is conducted
instead).
- Parameters:
nodes - a node or a comma separated list of nodes.
- Throws:
JspTagException
setPath
public void setPath(String path)
throws JspTagException
- Parameters:
path - a comma separated list of nodeManagers
- Throws:
JspTagException
setSearchdir
public void setSearchdir(String search)
throws JspTagException
- The search parameter, determines how directionality affects the search.
Possible values are
both, destination,
source, either and all
- Parameters:
search - the search value
- Throws:
JspTagException
setDistinct
public void setDistinct(String distinct)
throws JspTagException
- Parameters:
distinct - the selection query for the object we are looking for
- Throws:
JspTagException
getSearchNodes
protected String getSearchNodes()
throws JspTagException
- To be overrided by related-tag
- Throws:
JspTagException
getPath
protected String getPath()
throws JspTagException
- To be overrided by related-tag
- Throws:
JspTagException
getListContainer
protected QueryContainer getListContainer()
throws JspTagException
- Throws:
JspTagException
doStartTag
public int doStartTag()
throws JspTagException
- Performs the search
- Specified by:
doStartTag in interface Tag- Overrides:
doStartTag in class NodeReferrerTag
- Throws:
JspTagException
MMBase 2.0-SNAPSHOT - null