org.mmbase.bridge.jsp.taglib.functions
Class NodeFunctionTag

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.functions.AbstractFunctionTag
                          extended by org.mmbase.bridge.jsp.taglib.functions.NodeFunctionTag
All Implemented Interfaces:
Serializable, BodyTag, IterationTag, JspTag, Tag, TryCatchFinally, ContainerReferrer, FunctionContainerOrNodeProvider, FunctionContainerReferrer, NodeProvider, TagIdentifier

public class NodeFunctionTag
extends AbstractFunctionTag
implements NodeProvider, FunctionContainerReferrer

Since:
MMBase-1.7
Version:
$Id: NodeFunctionTag.java 41042 2010-02-15 22:48:06Z michiel $
Author:
Michiel Meeuwissen
See Also:
Serialized Form

Field Summary
protected  NodeProviderHelper nodeHelper
           
 
Fields inherited from class org.mmbase.bridge.jsp.taglib.functions.AbstractFunctionTag
add, container, functionClass, functionSet, module, name, nodeManager, parametersAttr, referids, remove, retain, THISPAGE
 
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.BodyTag
EVAL_BODY_BUFFERED, EVAL_BODY_TAG
 
Fields inherited from interface javax.servlet.jsp.tagext.IterationTag
EVAL_BODY_AGAIN
 
Fields inherited from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
 
Constructor Summary
NodeFunctionTag()
           
 
Method Summary
 int doAfterBody()
          this method writes the content of the body back to the jsp page
 int doEndTag()
           
 void doFinally()
           
 int doStartTag()
           
protected  void fillVars()
           
 Query getGeneratingQuery()
          Returns a query which (a.o) results this Node.
 Node getNodeVar()
           
 void setCommitonclose(String c)
          Whether the node must be commited after the body of the tag if any changes occured
 void setJspvar(String jv)
          NodeProviders support the jspvar attribute (giving a Node jsp var object).
protected  void setNodeVar(Node node)
           
 void setNotfound(String i)
           
 
Methods inherited from class org.mmbase.bridge.jsp.taglib.functions.AbstractFunctionTag
getFunction, getFunction, getFunction, getFunctionValue, getFunctionValue, setAdd, setClassname, setContainer, setModule, setName, setNodemanager, setParameters, setReferids, setRemove, setRetain, setSet, useCollectionMethods
 
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.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.TagIdentifier
getId
 
Methods inherited from interface org.mmbase.bridge.jsp.taglib.containers.FunctionContainerReferrer
setContainer
 
Methods inherited from interface javax.servlet.jsp.tagext.Tag
getParent, setParent
 

Field Detail

nodeHelper

protected NodeProviderHelper nodeHelper
Constructor Detail

NodeFunctionTag

public NodeFunctionTag()
Method Detail

setJspvar

public void setJspvar(String jv)
Description copied from interface: NodeProvider
NodeProviders support the jspvar attribute (giving a Node jsp var object).

Specified by:
setJspvar in interface NodeProvider
Overrides:
setJspvar in class ContextReferrerTag

getNodeVar

public Node getNodeVar()
Specified by:
getNodeVar in interface NodeProvider
Returns:
the node contained in the tag NOTE: we have decided to call this method getNodeVar because we use tag attributes with name "node" and type String

setNodeVar

protected void setNodeVar(Node node)

setNotfound

public void setNotfound(String i)
                 throws JspTagException
Throws:
JspTagException

fillVars

protected void fillVars()
                 throws JspTagException
Throws:
JspTagException

getGeneratingQuery

public Query getGeneratingQuery()
                         throws JspTagException
Description copied from interface: NodeProvider
Returns a query which (a.o) results this Node.

Specified by:
getGeneratingQuery in interface NodeProvider
Throws:
JspTagException

setCommitonclose

public void setCommitonclose(String c)
                      throws JspTagException
Description copied from interface: NodeProvider
Whether the node must be commited after the body of the tag if any changes occured

Specified by:
setCommitonclose in interface NodeProvider
Throws:
JspTagException
Since:
MMBase-1.8

doEndTag

public int doEndTag()
             throws JspTagException
Specified by:
doEndTag in interface Tag
Overrides:
doEndTag in class NodeReferrerTag
Throws:
JspTagException

doStartTag

public int doStartTag()
               throws JspTagException
Specified by:
doStartTag in interface Tag
Overrides:
doStartTag in class NodeReferrerTag
Throws:
JspTagException

doAfterBody

public int doAfterBody()
                throws JspTagException
this method writes the content of the body back to the jsp page

Specified by:
doAfterBody in interface IterationTag
Overrides:
doAfterBody in class BodyTagSupport
Throws:
JspTagException

doFinally

public void doFinally()
Specified by:
doFinally in interface TryCatchFinally
Overrides:
doFinally in class ContextReferrerTag


MMBase 2.0-SNAPSHOT - null