- All Implemented Interfaces:
GlobalAttributes
,Serializable
,BodyTag
,DynamicAttributes
,IterationTag
,JspTag
,Tag
,TryCatchFinally
TODO: Support both filtered and buffered modes, defaulting to filtered This would allow nested tags while in buffered mode. Would be a boolean attribute "buffered", defaulting to false. A TLD validator would confirm that attribute-providing tags are not within an unbuffered parent. This would also likely converge FilteredBodyTag and BufferedBodyTag into a single implementation. Also, all *Attribute interfaces sould have a "boolean isBuffered()".
TODO: Have dir attribute accept a new value "response", which would be the default. This would set the dir value based on the current response locale. This would be consistent with the current lang implementation. "auto" could still be used to override this. Possibly allow set as empty string to override, too.
TODO: Support an open-only mode, which would be the default when there is no body. Values "true", "false", "auto" (the default). When open-only, the closing </ao:html> would not be written, and the request attributes would not be restored. This would allow the <ao:html> tag to be used where the header and footer are split into separate files. Maybe negate it and call the attribute "close".
TODO: Implement GlobalAttributes, but beware this would make ScriptTag always thing its inside a StyleAttribute. Could workaround this issue by making a StyleUnexpectedAttribute, which would override StyleAttribute with a set of deprecated methods, then StyleTag would ignore its StyleAttribute parent tag if it is actually a StyleUnexpectedAttribute.
- See Also:
-
Field Summary
Fields inherited from class com.aoapps.taglib.legacy.ElementFilteredBodyTag
global
Fields inherited from class com.aoapps.encoding.taglib.legacy.EncodingFilteredBodyTag
EVAL_BODY_FILTERED
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
-
Method Summary
Modifier and TypeMethodDescriptionprotected int
void
protected int
doStartTag
(Writer out) //void
setAutonli
(String autonli) void
setDoctype
(String doctype) void
void
setSerialization
(String serialization) Methods inherited from class com.aoapps.taglib.legacy.ElementFilteredBodyTag
addDynamicAttribute, getClazz, getData, getDir, getStyle, setClazz, setDir, setDynamicAttribute, setId, setStyle
Methods inherited from class com.aoapps.encoding.taglib.legacy.EncodingFilteredBodyTag
doAfterBody, doAfterBody, doCatch, doEndTag, doInitBody, doStartTag, setMediaEncoderOptions, writeEncoderPrefix, writeEncoderSuffix, writePrefix, writeSuffix
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport
getBodyContent, getPreviousOut, release, setBodyContent
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, 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 com.aoapps.taglib.GlobalAttributes
getId
Methods inherited from interface javax.servlet.jsp.tagext.Tag
getParent, setPageContext, setParent
-
Constructor Details
-
HtmlTag
public HtmlTag()
-
-
Method Details
-
getContentType
/- Specified by:
getContentType
in classEncodingFilteredBodyTag
-
setSerialization
-
setDoctype
-
setAutonli
-
setIndent
-
doStartTag
/- Overrides:
doStartTag
in classEncodingFilteredBodyTag
- Throws:
JspException
IOException
-
doEndTag
- Overrides:
doEndTag
in classEncodingFilteredBodyTag
- Throws:
JspException
IOException
-
doFinally
public void doFinally()- Specified by:
doFinally
in interfaceTryCatchFinally
- Overrides:
doFinally
in classElementFilteredBodyTag
-