Class 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
    • Field Summary

      • Fields inherited from class javax.servlet.jsp.tagext.TagSupport

        id, pageContext
      • 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

      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 javax.servlet.jsp.tagext.TagSupport

        doAfterBody, findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • JavaScriptTag

        public JavaScriptTag()
    • Method Detail

      • 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 to True is that it won't be designed to be part of a tag attribute, but instead, as part of a SCRIPT 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 is False.
        Parameters:
        value - boolean indicating if the content to output should be javascript encoded or not.
        Since:
        MicroStrategy Web 9.0.1