|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.servlet.jsp.tagext.TagSupport info.magnolia.cms.taglibs.BaseContentTag info.magnolia.cms.taglibs.SetNode
public class SetNode
Exposes a content node to the pagecontext as a Map of nodeData, in order to access the exposed object using JSTL.
Since JSTL doesn't allow calling a method like Content.getNodeData(String)
the Content
is wrapped into a NodeMapWrapper
which exposes NodeData using a map interface. This tag can be useful
in similar situations: (see @jsp.tag-example)
Nested Class Summary | |
---|---|
class |
SetNode.NodeMapWrapper
Deprecated. use info.magnolia.cms.util.NodeMapWrapper instead |
Field Summary |
---|
Fields inherited from class javax.servlet.jsp.tagext.TagSupport |
---|
id, pageContext |
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 | |
---|---|
SetNode()
|
Method Summary | |
---|---|
int |
doEndTag()
Set contentNode in pagecontext and continue evaluating jsp. |
void |
release()
|
void |
setContent(Content node)
Deprecated. use the contentNode attribute |
void |
setNodeDataName(String name)
Set the node data name, e.g. |
void |
setScope(String scope)
Scope for the declared variable. |
void |
setVar(String var)
The content node will be added to the pagecontext with this name. |
Methods inherited from class info.magnolia.cms.taglibs.BaseContentTag |
---|
getContentNode, getContentNodeCollectionName, getContentNodeName, getCurrentPage, getFirstMatchingNode, getFirtMatchingNode, getNodeDataName, getPath, getRepository, getUuid, isActpage, resolveNode, setActpage, setContentNode, setContentNodeCollectionName, setContentNodeName, setInherit, setPath, setRepository, setUuid |
Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
---|
doAfterBody, doStartTag, findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SetNode()
Method Detail |
---|
public void setVar(String var)
public void setContent(Content node)
public void setScope(String scope)
public void setNodeDataName(String name)
BaseContentTag
setNodeDataName
in class BaseContentTag
public int doEndTag()
doEndTag
in interface javax.servlet.jsp.tagext.Tag
doEndTag
in class javax.servlet.jsp.tagext.TagSupport
public void release()
release
in interface javax.servlet.jsp.tagext.Tag
release
in class BaseContentTag
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |