- All Implemented Interfaces:
GlobalAttributes
,DynamicAttributes
,JspTag
,SimpleTag
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.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final Resources
static final ScopeEE.Page.Attribute
<String> The old Struts 1 XHTML mode page attribute.Fields inherited from class com.aoapps.taglib.ElementFilteredTag
global
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
beginHtmlTag
(Locale locale, Appendable out, Serialization serialization, GlobalAttributes global) static void
beginHtmlTag
(Locale locale, Appendable out, Serialization serialization, String clazz) Deprecated.static void
beginHtmlTag
(ServletResponse response, Appendable out, Serialization serialization, GlobalAttributes global) static void
beginHtmlTag
(ServletResponse response, Appendable out, Serialization serialization, String clazz) protected void
static void
endHtmlTag
(Appendable out) /void
setAutonli
(String autonli) void
setDoctype
(String doctype) void
void
setSerialization
(String serialization) Methods inherited from class com.aoapps.taglib.ElementFilteredTag
addDynamicAttribute, getClazz, getData, getDir, getId, getStyle, setClazz, setDir, setDynamicAttribute, setId, setStyle
Methods inherited from class com.aoapps.encoding.taglib.EncodingFilteredTag
doTag, setMediaEncoderOptions, writeEncoderPrefix, writeEncoderSuffix, writePrefix, writeSuffix
Methods inherited from class javax.servlet.jsp.tagext.SimpleTagSupport
findAncestorWithClass, getJspBody, getJspContext, getParent, setJspBody, setJspContext, setParent
-
Field Details
-
RESOURCES
-
STRUTS_XHTML_KEY
The old Struts 1 XHTML mode page attribute. To avoiding picking-up a big legacy dependency, we've copied the value here instead of depending on Globals. Once we no longer have any code running on old Struts, this value may be removed.
-
-
Constructor Details
-
HtmlTag
public HtmlTag()
-
-
Method Details
-
getContentType
/- Specified by:
getContentType
in classEncodingFilteredTag
-
setSerialization
-
setDoctype
-
setAutonli
-
setIndent
-
doTag
- Overrides:
doTag
in classEncodingFilteredTag
- Throws:
JspException
IOException
-
beginHtmlTag
public static void beginHtmlTag(Locale locale, Appendable out, Serialization serialization, GlobalAttributes global) throws IOException - Throws:
IOException
-
beginHtmlTag
@Deprecated public static void beginHtmlTag(Locale locale, Appendable out, Serialization serialization, String clazz) throws IOException Deprecated.- Throws:
IOException
-
beginHtmlTag
public static void beginHtmlTag(ServletResponse response, Appendable out, Serialization serialization, GlobalAttributes global) throws IOException - Throws:
IOException
-
beginHtmlTag
@Deprecated public static void beginHtmlTag(ServletResponse response, Appendable out, Serialization serialization, String clazz) throws IOException Deprecated.- Throws:
IOException
-
endHtmlTag
- Throws:
IOException
-
beginHtmlTag(java.util.Locale, java.lang.Appendable, com.aoapps.encoding.Serialization, com.aoapps.taglib.GlobalAttributes)