- All Implemented Interfaces:
Serializable,BodyTag,IterationTag,JspTag,Tag
- Author:
- AO Industries, Inc.
- See Also:
-
Field Summary
Fields inherited from class javax.servlet.jsp.tagext.BodyTagSupport
bodyContentFields inherited from class javax.servlet.jsp.tagext.TagSupport
id, pageContextFields inherited from interface javax.servlet.jsp.tagext.BodyTag
EVAL_BODY_BUFFERED, EVAL_BODY_TAGFields inherited from interface javax.servlet.jsp.tagext.IterationTag
EVAL_BODY_AGAINFields inherited from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintdoEndTag()intstatic voidwriteDateTimeJavascript(long date, Sequence sequence, Union_Palpable_Phrasing<?> content, Appendable scriptOut) Writes a JavaScript script tag that shows a date and time in the user's locale.static voidwriteDateTimeJavascript(Long date, Sequence sequence, Union_Palpable_Phrasing<?> content, Appendable scriptOut) Writes a JavaScript script tag that shows a date and time in the user's locale.static voidwriteDateTimeJavascript(Date date, Sequence sequence, Union_Palpable_Phrasing<?> content, Appendable scriptOut) Writes a JavaScript script tag that shows a date and time in the user's locale.Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport
doAfterBody, doInitBody, getBodyContent, getPreviousOut, release, setBodyContentMethods inherited from class javax.servlet.jsp.tagext.TagSupport
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValueMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface javax.servlet.jsp.tagext.Tag
getParent, setPageContext, setParent
-
Constructor Details
-
DateTimeTag
public DateTimeTag()
-
-
Method Details
-
writeDateTimeJavascript
public static void writeDateTimeJavascript(long date, Sequence sequence, Union_Palpable_Phrasing<?> content, Appendable scriptOut) throws IOException Writes a JavaScript script tag that shows a date and time in the user's locale.Because this needs to modify the DOM it can lead to poor performance or large data sets. To provide more performance options, the JavaScript is written to scriptOut. This could then be buffered into one long script to execute at once or using body.onload.
The provided sequence should start at one for any given HTML page because parts of the script will only be written when the sequence is equal to one.
- Throws:
IOException- See Also:
-
writeDateTimeJavascript
public static void writeDateTimeJavascript(Long date, Sequence sequence, Union_Palpable_Phrasing<?> content, Appendable scriptOut) throws IOException Writes a JavaScript script tag that shows a date and time in the user's locale. Prints nothing when the date isnull.Because this needs to modify the DOM it can lead to poor performance or large data sets. To provide more performance options, the JavaScript is written to scriptOut. This could then be buffered into one long script to execute at once or using body.onload.
The provided sequence should start at one for any given HTML page because parts of the script will only be written when the sequence is equal to one.
- Throws:
IOException- See Also:
-
writeDateTimeJavascript
public static void writeDateTimeJavascript(Date date, Sequence sequence, Union_Palpable_Phrasing<?> content, Appendable scriptOut) throws IOException Writes a JavaScript script tag that shows a date and time in the user's locale. Prints nothing when the date isnull.Because this needs to modify the DOM it can lead to poor performance or large data sets. To provide more performance options, the JavaScript is written to scriptOut. This could then be buffered into one long script to execute at once or using body.onload.
The provided sequence should start at one for any given HTML page because parts of the script will only be written when the sequence is equal to one.
- Throws:
IOException- See Also:
-
doStartTag
- Specified by:
doStartTagin interfaceTag- Overrides:
doStartTagin classBodyTagSupport- Throws:
JspException
-
doEndTag
- Specified by:
doEndTagin interfaceTag- Overrides:
doEndTagin classBodyTagSupport- Throws:
JspException
-
