org.mmbase.bridge.jsp.taglib.macro
Class RelatedTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by javax.servlet.jsp.tagext.BodyTagSupport
          extended by org.mmbase.bridge.jsp.taglib.ContextReferrerTag
              extended by org.mmbase.bridge.jsp.taglib.CloudReferrerTag
                  extended by org.mmbase.bridge.jsp.taglib.NodeReferrerTag
                      extended by org.mmbase.bridge.jsp.taglib.AbstractNodeProviderTag
                          extended by org.mmbase.bridge.jsp.taglib.AbstractNodeListTag
                              extended by org.mmbase.bridge.jsp.taglib.ListTag
                                  extended by org.mmbase.bridge.jsp.taglib.macro.RelatedTag
All Implemented Interfaces:
Serializable, LoopTag, BodyTag, IterationTag, JspTag, Tag, TryCatchFinally, ClusterNodeProvider, FunctionContainerOrNodeProvider, ContextProvider, ListProvider, NodeProvider, TagIdentifier

public class RelatedTag
extends ListTag

Shortcut for List where the start node is the parent node.

Version:
$Id: RelatedTag.java 35335 2009-05-21 08:14:41Z michiel $
Author:
Michiel Meeuwissen, Jacco de Groot, Pierre van Rooden
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class org.mmbase.bridge.jsp.taglib.AbstractNodeListTag
AbstractNodeListTag.NodesAndTrim
 
Nested classes/interfaces inherited from interface org.mmbase.bridge.jsp.taglib.ListProvider
ListProvider.ListProviderLoopTagStatus
 
Field Summary
 
Fields inherited from class org.mmbase.bridge.jsp.taglib.ListTag
container, distinct, fields, nodes, path, search
 
Fields inherited from class org.mmbase.bridge.jsp.taglib.AbstractNodeListTag
constraints, directions, listHelper, NOT_HANDLED, orderby, usetransaction
 
Fields inherited from class org.mmbase.bridge.jsp.taglib.AbstractNodeProviderTag
fieldEscaper, nodeHelper
 
Fields inherited from class org.mmbase.bridge.jsp.taglib.NodeReferrerTag
parentNodeId
 
Fields inherited from class org.mmbase.bridge.jsp.taglib.CloudReferrerTag
cloudId
 
Fields inherited from class org.mmbase.bridge.jsp.taglib.ContextReferrerTag
contextId, EVAL_BODY, helper, id, pageContextTag, referid, writerid
 
Fields inherited from class javax.servlet.jsp.tagext.BodyTagSupport
bodyContent
 
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
pageContext
 
Fields inherited from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
 
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
 
Constructor Summary
RelatedTag()
           
 
Method Summary
protected  Node getBaseNode()
           
 Cloud getCloudVar()
          Find the CloudProvider and return its cloud variable in one step.
protected  QueryContainer getListContainer()
           
protected  String getPath()
          Obtain the list path.
protected  String getSearchNodes()
          To be overrided by related-tag
 
Methods inherited from class org.mmbase.bridge.jsp.taglib.ListTag
doStartTag, setContainer, setDistinct, setFields, setNodes, setPath, setSearchdir
 
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.AbstractNodeProviderTag
fillVars, getNodeVar, setCommitonclose, setFieldescape, setJspvar, setNodeVar
 
Methods inherited from class org.mmbase.bridge.jsp.taglib.NodeReferrerTag
fillStandardParameters, findNode, findNodeProvider, findNodeProvider, getLocale, getNode, getNode, getNodeFromPageContext, initTag, setElement, setNode
 
Methods inherited from class org.mmbase.bridge.jsp.taglib.CloudReferrerTag
findCloudProvider, findCloudProvider, getCloudContext, getNode, getNodeOrNull, setCloud
 
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, setReferid, setVartype, setWrite, setWriter
 
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport
doInitBody, getBodyContent, getPreviousOut, setBodyContent
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
findAncestorWithClass, getParent, getValue, getValues, removeValue, setParent, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.mmbase.bridge.jsp.taglib.NodeProvider
getGeneratingQuery, getNodeVar, setCommitonclose, setJspvar
 
Methods inherited from interface org.mmbase.bridge.jsp.taglib.TagIdentifier
getId
 
Methods inherited from interface org.mmbase.bridge.jsp.taglib.ContextProvider
getPageContext
 
Methods inherited from interface javax.servlet.jsp.tagext.Tag
getParent, release, setPageContext, setParent
 

Constructor Detail

RelatedTag

public RelatedTag()
Method Detail

getBaseNode

protected Node getBaseNode()
                    throws JspTagException
Throws:
JspTagException

getCloudVar

public Cloud getCloudVar()
                  throws JspTagException
Description copied from class: CloudReferrerTag
Find the CloudProvider and return its cloud variable in one step. And the result of findCloudProvider is stored, so invoking this function more often is better then invoking findCloudProvider every time.

Overrides:
getCloudVar in class NodeReferrerTag
Returns:
a Cloud
Throws:
JspTagException

getSearchNodes

protected String getSearchNodes()
                         throws JspTagException
Description copied from class: ListTag
To be overrided by related-tag

Overrides:
getSearchNodes in class ListTag
Throws:
JspTagException

getPath

protected String getPath()
                  throws JspTagException
Obtain the list path. Adds the related basenode's type (extended with a '0' postfix to distinguis it from other types in the path) to the front of the path.

Overrides:
getPath in class ListTag
Throws:
JspTagException

getListContainer

protected QueryContainer getListContainer()
                                   throws JspTagException
Overrides:
getListContainer in class ListTag
Throws:
JspTagException


MMBase 2.0-SNAPSHOT - null