Class JavaScriptTag
- java.lang.Object
-
- javax.servlet.jsp.tagext.TagSupport
-
- com.microstrategy.web.app.taglibs.AbstractNoBodyTag
-
- com.microstrategy.web.app.taglibs.JavaScriptTag
-
- All Implemented Interfaces:
java.io.Serializable
,javax.servlet.jsp.tagext.IterationTag
,javax.servlet.jsp.tagext.JspTag
,javax.servlet.jsp.tagext.Tag
public class JavaScriptTag extends AbstractNoBodyTag
- Since:
- MicroStrategy Web 7.3.1 or earlier
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description JavaScriptTag()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AbstractNoBodyTagHelper
getHelper()
Method for retrieving the helper associated with the tag.void
setEventName(java.lang.String value)
Indicates the event to search for in the list of JavaScript elements specified for the page.void
setForIframeUpdate(java.lang.String value)
Indicates whether the JavaScript code for the event indicated is for an IFrame update or not.void
setJsEncode(boolean value)
Indicates if the output to render should be encoded for Javascript or not.void
setType(java.lang.String value)
Sets the type attribute of javascript tag.-
Methods inherited from class com.microstrategy.web.app.taglibs.AbstractNoBodyTag
doEndTag, doStartTag, release
-
-
-
-
Method Detail
-
getHelper
public AbstractNoBodyTagHelper getHelper()
Method for retrieving the helper associated with the tag.- Specified by:
getHelper
in classAbstractNoBodyTag
- Returns:
- an instance of
AbstractNoBodyTagHelper
which will take care of processing and rendering the HTML contents associated with this tag.
-
setEventName
public void setEventName(java.lang.String value)
Indicates the event to search for in the list of JavaScript elements specified for the page.
Usage:
There could be multiple JavaScript definitions on the page for the same event; each one of those will be displayed.- Parameters:
value
-String
with the name of the event to search for.
-
setForIframeUpdate
public void setForIframeUpdate(java.lang.String value)
Indicates whether the JavaScript code for the event indicated is for an IFrame update or not.
Usage:
The difference on the HTML to generate if this attribute is set toTrue
is that it won't be designed to be part of a tag attribute, but instead, as part of aSCRIPT
tag content.- Parameters:
value
-String
value with a boolean indicating if the JavaScript will be used for IFrame update or not.
-
setType
public void setType(java.lang.String value)
Sets the type attribute of javascript tag.- Since:
- MicroStrategy Web 9.0.0
-
setJsEncode
public void setJsEncode(boolean value)
Indicates if the output to render should be encoded for Javascript or not.
Usage:
The encoding that Javascript requires is different from the one done for HTML; for example, quotes need to be paid special attention. The default value if this attribute is not specified isFalse
.- Parameters:
value
-boolean
indicating if the content to output should be javascript encoded or not.- Since:
- MicroStrategy Web 9.0.1
-
-