info.magnolia.cms.taglibs.util
Class AHref
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.tagext.BodyTagSupport
info.magnolia.cms.taglibs.util.AHref
- All Implemented Interfaces:
- Serializable, javax.servlet.jsp.tagext.BodyTag, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.Tag
public class AHref
- extends javax.servlet.jsp.tagext.BodyTagSupport
Utility tag which can be used to print out a link based on the value of a node data or tries to find the first page
with a specific template name, starting from a specific page.
- Version:
- $Revision $ ($Author $)
- Author:
- Marcel Salathe, Fabrizio Giustina
- See Also:
- Serialized Form
Fields inherited from class javax.servlet.jsp.tagext.BodyTagSupport |
bodyContent |
Fields inherited from class javax.servlet.jsp.tagext.TagSupport |
id, 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 |
AHref()
|
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, 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 |
Methods inherited from interface javax.servlet.jsp.tagext.Tag |
getParent, setPageContext, setParent |
AHref
public AHref()
setAtomName
public void setAtomName(String name)
- Deprecated. use the nodeDataName attribute instead.
- Parameters:
name
- name of nodeData to evaluate
setNodeDataName
public void setNodeDataName(String name)
- node containing the link information.
setPreHref
public void setPreHref(String preHref)
- href part that is added before the nodeData content.
setPostHref
public void setPostHref(String postHref)
- href part that is added after the nodeData content.
setTemplateName
public void setTemplateName(String templateName)
- template name to search for.
setLevel
public void setLevel(int level)
- level from where to start the template search.
setAttribute
public void setAttribute(String name,
String value)
- Adds a link parameter.
- Parameters:
name
- name of attribute to add to the a elementvalue
- value of attribute to add to the a element
doEndTag
public int doEndTag()
- Specified by:
doEndTag
in interface javax.servlet.jsp.tagext.Tag
- Overrides:
doEndTag
in class javax.servlet.jsp.tagext.BodyTagSupport
- See Also:
Tag.doEndTag()
release
public void release()
- Specified by:
release
in interface javax.servlet.jsp.tagext.Tag
- Overrides:
release
in class javax.servlet.jsp.tagext.BodyTagSupport
- See Also:
BodyTagSupport.release()
Copyright © 2003-2012 Magnolia International Ltd.. All Rights Reserved.