|
|||||||||
| 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
org.mmbase.bridge.jsp.taglib.ContextTag
A ContextTag is like parentheses, and as such can act as a 'namespace' (if it has an id) or as 'scope' (if it doesn't).
The context can be seen as a container for variables and their values.
(ContextReferrer) Tags living under a context tag can 'register' themselves in the context (by use of the 'id' attribute') and in that way become a variable. Other tags can refer to such variables.
A ContextTag is a ContextReferrer itself too, and therefore it is possible to 'nest' contextes. And perhaps we will also make it possible to treat contextes as variables and e.g. pass them to another page as a whole.
It is also possible to put something into the Context by hand. For that you can use the `ImportTag'.
Writing out the value of a variable can be done with the `Write' Tag.
ImportTag,
WriteTag,
Serialized Form| Field Summary | |
static java.lang.String |
DEFAULTENCODING_KEY
|
| 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 | |
ContextTag()
|
|
| Method Summary | |
int |
doAfterBody()
|
int |
doEndTag()
|
int |
doStartTag()
|
java.lang.Object |
findAndRegister(int from,
java.lang.String referid,
java.lang.String newid)
Deprecated. Use getContextProvider().getContextContainer().findAndRegister |
protected java.lang.Object |
findAndRegister(int from,
java.lang.String referid,
java.lang.String newid,
boolean check)
Deprecated. Use getContextProvider().getContextContainer().findAndRegister |
java.lang.Object |
findAndRegister(java.lang.String id)
Deprecated. Use getContextProvider().getContextContainer().findAndRegister |
java.lang.Object |
findAndRegister(java.lang.String externid,
java.lang.String newid)
Deprecated. Use getContextProvider().getContextContainer().findAndRegister |
java.lang.String |
findAndRegisterString(java.lang.String id)
Deprecated. Use getContextProvider().getContextContainer().findAndRegisterString |
byte[] |
getBytes(java.lang.String key)
hmm.. |
java.lang.Object |
getContainerObject(java.lang.String key)
Deprecated. Use getContextProvider().getContextContainer().getObject |
ContextContainer |
getContextContainer()
|
boolean |
isPresent(java.lang.String key)
Deprecated. Use getContextProvider().getContextContainer().isPresent |
boolean |
isRegistered(java.lang.String key)
Deprecated. Use getContextProvider().getContextContainer().isRegistered |
void |
register(java.lang.String newid,
java.lang.Object n)
Deprecated. Use getContextProvider().getContextContainer().register |
void |
register(java.lang.String newid,
java.lang.Object n,
boolean check)
Deprecated. Use getContextProvider().getContextContainer().register |
void |
registerNode(java.lang.String key,
Node node)
Deprecated. Use getContextProvider().getContextContainer().registerNode |
void |
reregister(java.lang.String id,
java.lang.Object n)
Deprecated. Use getContextProvider().getContextContainer().reregister |
void |
setCloudContext(CloudContext cc)
This context can also serve as a 'cloudcontext'. |
void |
setPageContext(javax.servlet.jsp.PageContext pc)
|
void |
setReferid(java.lang.String r)
ContextReferrers normally can have the attribute 'referid'. |
void |
unRegister(java.lang.String key)
Deprecated. Use getContextProvider().getContextContainer().unRegister |
| Methods inherited from class org.mmbase.bridge.jsp.taglib.ContextReferrerTag |
fillStandardParameters, findParentTag, findParentTag, findParentTag, findParentTag, findWriter, findWriter, getAttribute, getAttributeBoolean, getAttributeInteger, getAttributeInteger, getAttributeValue, getContentTag, getContextProvider, getContextTag, getId, getLocale, getObject, getPageContext, getReferid, getString, getWriterValue, haveBody, release, setContext, setEscape, setId, setJspvar, 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 javax.servlet.jsp.tagext.Tag |
getParent, setParent |
| Field Detail |
public static final java.lang.String DEFAULTENCODING_KEY
| Constructor Detail |
public ContextTag()
| Method Detail |
public void setReferid(java.lang.String r)
throws javax.servlet.jsp.JspTagException
ContextReferrerTag
setReferid in class ContextReferrerTagjavax.servlet.jsp.JspTagExceptionpublic void setCloudContext(CloudContext cc)
public void setPageContext(javax.servlet.jsp.PageContext pc)
setPageContext in interface javax.servlet.jsp.tagext.TagsetPageContext in class ContextReferrerTagpublic ContextContainer getContextContainer()
getContextContainer in interface ContextProvider
public int doStartTag()
throws javax.servlet.jsp.JspTagException
doStartTag in interface javax.servlet.jsp.tagext.Tagjavax.servlet.jsp.JspTagException
public void registerNode(java.lang.String key,
Node node)
throws javax.servlet.jsp.JspTagException
key - the key (id) of the node to registernode - the node to put in the hashmap
javax.servlet.jsp.JspTagException
public java.lang.Object findAndRegister(int from,
java.lang.String referid,
java.lang.String newid)
throws javax.servlet.jsp.JspTagException
javax.servlet.jsp.JspTagException
protected java.lang.Object findAndRegister(int from,
java.lang.String referid,
java.lang.String newid,
boolean check)
throws javax.servlet.jsp.JspTagException
javax.servlet.jsp.JspTagException
public java.lang.Object findAndRegister(java.lang.String externid,
java.lang.String newid)
throws javax.servlet.jsp.JspTagException
javax.servlet.jsp.JspTagException
public void register(java.lang.String newid,
java.lang.Object n,
boolean check)
throws javax.servlet.jsp.JspTagException
javax.servlet.jsp.JspTagException
public void register(java.lang.String newid,
java.lang.Object n)
throws javax.servlet.jsp.JspTagException
javax.servlet.jsp.JspTagException
public void unRegister(java.lang.String key)
throws javax.servlet.jsp.JspTagException
javax.servlet.jsp.JspTagException
public void reregister(java.lang.String id,
java.lang.Object n)
throws javax.servlet.jsp.JspTagException
javax.servlet.jsp.JspTagException
public boolean isPresent(java.lang.String key)
throws javax.servlet.jsp.JspTagException
javax.servlet.jsp.JspTagException
public boolean isRegistered(java.lang.String key)
throws javax.servlet.jsp.JspTagException
javax.servlet.jsp.JspTagException
public java.lang.Object findAndRegister(java.lang.String id)
throws javax.servlet.jsp.JspTagException
javax.servlet.jsp.JspTagException
public java.lang.String findAndRegisterString(java.lang.String id)
throws javax.servlet.jsp.JspTagException
javax.servlet.jsp.JspTagException
public java.lang.Object getContainerObject(java.lang.String key)
throws javax.servlet.jsp.JspTagException
javax.servlet.jsp.JspTagException
public byte[] getBytes(java.lang.String key)
throws javax.servlet.jsp.JspTagException
javax.servlet.jsp.JspTagException
public int doAfterBody()
throws javax.servlet.jsp.JspTagException
doAfterBody in interface javax.servlet.jsp.tagext.IterationTagjavax.servlet.jsp.JspTagException
public int doEndTag()
throws javax.servlet.jsp.JspTagException
doEndTag in interface javax.servlet.jsp.tagext.TagdoEndTag in class ContextReferrerTagjavax.servlet.jsp.JspTagException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||