org.mmbase.bridge.jsp.taglib
Class CountRelationsTag
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.CountRelationsTag
- All Implemented Interfaces:
- BodyTag, IterationTag, Serializable, Tag, Writer
- public class CountRelationsTag
- extends NodeReferrerTag
- implements Writer
The CountRelationsTag can be used as a child of a 'NodeProvider' tag to
show the number of relations the node has.
- Version:
- $Id: CountRelationsTag.java,v 1.25 2005/06/20 16:03:38 michiel Exp $
- Author:
- Jaco de Groot, Michiel Meeuwissen
- See Also:
- Serialized Form
| Methods inherited from class org.mmbase.bridge.jsp.taglib.ContextReferrerTag |
findLoopOrQuery, findParentTag, findParentTag, findParentTag, findParentTag, findWriter, findWriter, getAttribute, getAttributeBoolean, getAttributeInteger, getAttributeInteger, getAttributeValue, getContentTag, getContextProvider, getContextTag, getDefaultLocale, getEscapedValue, getId, getObject, getObjectConditional, getPageContext, getPageContextTag, getReferid, getString, getTaglibVersion, getTimeZone, getWriterValue, haveBody, release, setContext, setEscape, setId, setJspvar, setListdelimiter, setPageContext, setReferid, setVartype, setWrite, setWriter |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CountRelationsTag
public CountRelationsTag()
setType
public void setType(String type)
throws JspTagException
- Set the type of related nodes wich should be counted. If not set all
related nodes are counted.
- Throws:
JspTagException
setSearchdir
public void setSearchdir(String s)
throws JspTagException
- Throws:
JspTagException
setRole
public void setRole(String r)
throws JspTagException
- Throws:
JspTagException
doStartTag
public int doStartTag()
throws JspTagException
- Specified by:
doStartTag in interface Tag
- Throws:
JspTagException
doAfterBody
public int doAfterBody()
throws JspException
- Specified by:
doAfterBody in interface IterationTag
- Throws:
JspException
doEndTag
public int doEndTag()
throws JspTagException
- Specified by:
doEndTag in interface Tag- Overrides:
doEndTag in class ContextReferrerTag
- Throws:
JspTagException
MMBase build 1.8.1.20060716