org.araneaframework.jsp.tag.basic
Class AttributeHtmlTag
java.lang.Object
org.araneaframework.jsp.tag.BaseTag
org.araneaframework.jsp.tag.basic.AttributeHtmlTag
- All Implemented Interfaces:
- javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.Tag, javax.servlet.jsp.tagext.TryCatchFinally, ContainedTagInterface
public class AttributeHtmlTag
- extends BaseTag
Attribute tag, tries to define attribute of the containing tag (element).
First searches for HTML element from PageContext under the
AttributedTagInterface.HTML_ELEMENT_KEY
and if it is found writes out javascript that should set elements attribute.
When this does not succeed, searches AttributedTagInterface.ATTRIBUTED_TAG_KEY
and tries to attach attribute to found AttributedTagInterface, if any.
This only works when AttributedTagInterface has been implemented
correctly by containing tag and whole HTML for containing tag is written out in doEndTag() method.
- Author:
- Oleg Mürk
| Fields inherited from interface javax.servlet.jsp.tagext.Tag |
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE |
| Methods inherited from class org.araneaframework.jsp.tag.BaseTag |
addContextEntry, doCatch, doEndTag, doEndTag, doFinally, doStartTag, evaluate, evaluateNotNull, executeEndSubtag, executeEndTagAndUnregister, executeStartSubtag, executeSubtag, getConfiguration, getContextEntry, getContextWidget, getContextWidgetFullId, getEnvironment, getLocalizationContext, getOutputData, getParent, hideGlobalContextEntries, registerAndExecuteStartTag, registerSubtag, release, requireContextEntry, restoreGlobalContextEntries, setPageContext, setParent, unregisterSubtag |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
name
protected String name
value
protected String value
omitEmpty
protected boolean omitEmpty
- Since:
- 1.2.2
AttributeHtmlTag
public AttributeHtmlTag()
doStartTag
protected int doStartTag(Writer out)
throws Exception
- Description copied from class:
BaseTag
- Internal callback: before tag.
- Overrides:
doStartTag in class BaseTag
- Throws:
Exception
writeAttributeScript
public void writeAttributeScript(Writer out,
String elementKey)
throws IOException
- Throws:
IOException
setName
public void setName(String name)
throws javax.servlet.jsp.JspException
- Throws:
javax.servlet.jsp.JspException
setValue
public void setValue(String value)
throws javax.servlet.jsp.JspException
- Throws:
javax.servlet.jsp.JspException
setOmitEmpty
public void setOmitEmpty(boolean omitEmpty)
- Since:
- 1.2.2