|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.tagext.BodyTagSupport
org.mmbase.bridge.jsp.taglib.ContextReferrerTag
If you want to have attributes which obtain the value from a parameter or other context variable, or if you want to be able to refer to other tags, then your tag can extend from this one.
ContextTag,
Serialized Form| Field Summary | |
protected Attribute |
contextId
|
static int |
EVAL_BODY
EVAL_BODY is EVAL_BODY_INCLUDE or EVAL_BODY_BUFFERED. |
protected WriterHelper |
helper
The helper member is only used by 'Writer' extensions. |
protected Attribute |
id
|
protected ContextTag |
pageContextTag
|
protected Attribute |
referid
|
protected Attribute |
writerid
Which writer to use. |
| 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 | |
ContextReferrerTag()
|
|
| Method Summary | |
int |
doEndTag()
|
protected void |
fillStandardParameters(Parameters p)
|
Tag |
findLoopOrQuery(String tagId,
boolean exception)
|
protected TagSupport |
findParentTag(Class clazz,
String id)
|
TagSupport |
findParentTag(Class clazz,
String tagId,
boolean exception)
Finds a parent tag by class and id. |
protected TagSupport |
findParentTag(String classname,
String id)
Deprecated. |
protected TagSupport |
findParentTag(String classname,
String id,
boolean exception)
Deprecated. |
Writer |
findWriter()
Find the parent writer tag. |
Writer |
findWriter(boolean th)
|
Attribute |
getAttribute(String attribute)
|
protected Boolean |
getAttributeBoolean(String b)
Like getAttributeValue but converts the result to a Boolean, and throws an exception if this cannot be done. |
protected Integer |
getAttributeInteger(String i)
Like getAttributeValue but converts the result to an Integer, and throws an exception if this cannot be done. |
protected Integer |
getAttributeInteger(String i,
int def)
|
String |
getAttributeValue(String attribute)
Deprecated. Call getAttribute in the set-method and 'toString(tag)' when using it. This is better for perfomrnace and makes sure the impl. works in all servlet containers. |
ContentTag |
getContentTag()
Returns the content-tag in which this context-referrer is in, or a default (compatible with MMBase 1.6) if there is none. |
ContextProvider |
getContextProvider()
Finds the parent context provider. |
ContextTag |
getContextTag()
Finds the parent context tag. |
Locale |
getDefaultLocale()
|
protected Object |
getEscapedValue(Object value)
Returns the escaped value associated with this tag, but only if the escape attribute was set explicitely (so not when only inherited from content-tag). |
String |
getId()
|
Locale |
getLocale()
|
Object |
getObject(String key)
Gets an object from the Context. |
Object |
getObjectConditional(String key)
Support '[key]?', which returns the object with name [key] if it is present, or simply null otherwise. |
PageContext |
getPageContext()
|
protected ContextTag |
getPageContextTag()
|
protected String |
getReferid()
|
protected String |
getString(String key)
Gets an object from the Context, and returns it as a String. |
protected static String |
getTaglibVersion()
|
TimeZone |
getTimeZone()
|
Object |
getWriterValue()
|
void |
haveBody()
|
void |
release()
Release all allocated resources. |
void |
setContext(String c)
Refer to a specific context. |
void |
setEscape(String e)
|
void |
setId(String i)
|
void |
setJspvar(String j)
|
void |
setListdelimiter(String l)
|
void |
setPageContext(PageContext pc)
|
void |
setReferid(String r)
ContextReferrers normally can have the attribute 'referid'. |
void |
setVartype(String t)
|
void |
setWrite(String w)
|
void |
setWriter(String w)
Sets the writer attribute. |
| Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport |
doAfterBody, doInitBody, doStartTag, 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 |
public static int EVAL_BODY
protected ContextTag pageContextTag
protected Attribute contextId
protected Attribute referid
protected Attribute id
protected Attribute writerid
protected final WriterHelper helper
| Constructor Detail |
public ContextReferrerTag()
| Method Detail |
protected static String getTaglibVersion()
public PageContext getPageContext()
protected ContextTag getPageContextTag()
public void setPageContext(PageContext pc)
public void setReferid(String r)
throws JspTagException
JspTagExceptionpublic void setId(String i)
public String getId()
protected String getReferid()
throws JspTagException
JspTagException
public Writer findWriter()
throws JspTagException
JspTagException
public Writer findWriter(boolean th)
throws JspTagException
JspTagException
public void setWriter(String w)
throws JspTagException
JspTagException
public int doEndTag()
throws JspTagException
JspTagExceptionpublic void release()
public void setContext(String c)
throws JspTagException
JspTagException
public String getAttributeValue(String attribute)
throws JspTagException
JspTagException
public Attribute getAttribute(String attribute)
throws JspTagException
JspTagException
protected Boolean getAttributeBoolean(String b)
throws JspTagException
JspTagException
protected Integer getAttributeInteger(String i)
throws JspTagException
JspTagException
protected Integer getAttributeInteger(String i,
int def)
throws JspTagException
JspTagException
protected final TagSupport findParentTag(String classname,
String id,
boolean exception)
throws JspTagException
JspTagExceptionfindParentTag(Class, String, boolean)
public final TagSupport findParentTag(Class clazz,
String tagId,
boolean exception)
throws JspTagException
clazz - the class of the Tag to find.tagId - the id of the Tag to find.exception - if it has to throw an exception if the parent can not be found (default: yes).
JspTagException
public Tag findLoopOrQuery(String tagId,
boolean exception)
throws JspTagException
JspTagException
protected final TagSupport findParentTag(String classname,
String id)
throws JspTagException
JspTagException
protected final TagSupport findParentTag(Class clazz,
String id)
throws JspTagException
JspTagException
public ContextProvider getContextProvider()
throws JspTagException
JspTagException
public ContextTag getContextTag()
throws JspTagException
JspTagException
public Object getObject(String key)
throws JspTagException
JspTagException
public Object getObjectConditional(String key)
throws JspTagException
getObject(String).
JspTagException
protected String getString(String key)
throws JspTagException
JspTagException
public ContentTag getContentTag()
throws JspTagException
JspTagException
public Locale getLocale()
throws JspTagException
JspTagExceptionpublic Locale getDefaultLocale()
public TimeZone getTimeZone()
protected void fillStandardParameters(Parameters p)
throws JspTagException
JspTagException
public void setVartype(String t)
throws JspTagException
JspTagException
public final void setListdelimiter(String l)
throws JspTagException
JspTagExceptionpublic void setJspvar(String j)
public final void setWrite(String w)
throws JspTagException
JspTagException
public final void setEscape(String e)
throws JspTagException
JspTagExceptionpublic final Object getWriterValue()
public final void haveBody()
protected Object getEscapedValue(Object value)
throws JspTagException
JspTagException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||