org.mmbase.bridge.jsp.taglib
Class AbstractParamTag

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.AbstractParamTag
All Implemented Interfaces:
Serializable, BodyTag, IterationTag, JspTag, Tag, TryCatchFinally
Direct Known Subclasses:
FrameworkParamTag, ParamTag

abstract class AbstractParamTag
extends ContextReferrerTag

Adds an extra parameter to the parent URL tag.

Since:
MMBase-1.9
Version:
$Id: AbstractParamTag.java 36002 2009-06-11 20:54:44Z michiel $
Author:
Michiel Meeuwissen

Field Summary
protected  List<Entry<String,Object>> entries
           
protected  boolean handled
           
protected  Attribute name
           
protected  Attribute referid
           
protected  Attribute value
           
 
Fields inherited from class org.mmbase.bridge.jsp.taglib.ContextReferrerTag
contextId, EVAL_BODY, helper, id, pageContextTag, 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
AbstractParamTag()
           
 
Method Summary
protected abstract  void addParameter(Object value)
           
 void addParameter(String key, Object value)
           
 int doAfterBody()
           
 int doEndTag()
           
 void doFinally()
           
 int doStartTag()
           
 void setName(String n)
           
 void setReferid(String r)
          ContextReferrers normally can have the attribute 'referid'.
 void setValue(String v)
           
 
Methods inherited from class org.mmbase.bridge.jsp.taglib.ContextReferrerTag
appendMoreParameters, doCatch, fillStandardParameters, findLoopOrQuery, findParentTag, findParentTag, findWriter, findWriter, getAttribute, getAttribute, getAttributeBoolean, getAttributeInteger, getAttributeInteger, getAttributeValue, getContentTag, getContextProvider, getContextTag, getCurrentBlock, getDefaultLocale, getEscapedValue, getFormTag, getId, getLocale, getLocaleFromContext, getObject, getObjectConditional, getPageContext, getPageContextTag, getQuery, getReferid, getString, getTaglibVersion, getThreadPageContext, getTimeZone, getWriterValue, haveBody, release, setContext, setEscape, setId, setJspvar, setListdelimiter, setPageContext, setPageContextOnly, 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 javax.servlet.jsp.tagext.Tag
getParent, setParent
 

Field Detail

entries

protected List<Entry<String,Object>> entries

name

protected Attribute name

value

protected Attribute value

referid

protected Attribute referid

handled

protected boolean handled
Constructor Detail

AbstractParamTag

AbstractParamTag()
Method Detail

setName

public void setName(String n)
             throws JspTagException
Throws:
JspTagException

setValue

public void setValue(String v)
              throws JspTagException
Throws:
JspTagException

setReferid

public void setReferid(String r)
                throws JspTagException
Description copied from class: ContextReferrerTag
ContextReferrers normally can have the attribute 'referid'. If a ContextReferrer has the 'id' attribute it registers its output in the surrounding Context. With 'referid' you can 'repeat' a tag which had the 'id' attribute.

Overrides:
setReferid in class ContextReferrerTag
Parameters:
r - referid value
Throws:
JspTagException - when parsing of attributes fails
Since:
MMBase-1.8

addParameter

public void addParameter(String key,
                         Object value)
                  throws JspTagException
Throws:
JspTagException

doStartTag

public int doStartTag()
               throws JspException
Specified by:
doStartTag in interface Tag
Overrides:
doStartTag in class BodyTagSupport
Throws:
JspException

addParameter

protected abstract void addParameter(Object value)
                              throws JspTagException
Throws:
JspTagException
Since:
MMBase-1.9

doAfterBody

public int doAfterBody()
                throws JspException
Specified by:
doAfterBody in interface IterationTag
Overrides:
doAfterBody in class BodyTagSupport
Throws:
JspException

doEndTag

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

doFinally

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


MMBase 2.0-SNAPSHOT - null