com.ibm.commerce.pagelayout.internal.client.taglib

Class JSIncludeTag

  • java.lang.Object
    • javax.servlet.jsp.tagext.SimpleTagSupport
      • com.ibm.commerce.pagelayout.internal.client.taglib.JSIncludeTag
  • All Implemented Interfaces:
    javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.SimpleTag


    public class JSIncludeTag
    extends javax.servlet.jsp.tagext.SimpleTagSupport
    This is the tag handler class for wcpgl:jsInclude JSTL tag. This tag includes all the java script files associated with the widgets present in the layout. It gets the widget definition and looks for the widget property with name _pgl:javaScriptInclude and includes the java script file associated with this property. Once widget definition is found, it saves the definition in request attribute with name WIDGET_DEF_ for further use.
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static java.lang.String COPYRIGHT
      IBM copyright notice field.
    • Constructor Summary

      Constructors 
      Constructor and Description
      JSIncludeTag()
      Construct a new instance of the JSIncludeTag tag handler.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      void doTag()
      Evaluates this tag and writes out JS Include statements to output writer
      void setVarPageDesignDetails(java.lang.String varName)
      Setter for Page Design details variable name
      void setVarPageDesignDetailsJSON(java.lang.String varName)
      Setter for Page Design details JSON variable name
      • Methods inherited from class javax.servlet.jsp.tagext.SimpleTagSupport

        findAncestorWithClass, getParent, setJspBody, setJspContext, setParent
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • COPYRIGHT

        public static final java.lang.String COPYRIGHT
        IBM copyright notice field.
        See Also:
        Constant Field Values
    • Constructor Detail

      • JSIncludeTag

        public JSIncludeTag()
        Construct a new instance of the JSIncludeTag tag handler.
    • Method Detail

      • doTag

        public void doTag()
                   throws javax.servlet.jsp.JspException,
                          java.io.IOException
        Evaluates this tag and writes out JS Include statements to output writer
        Specified by:
        doTag in interface javax.servlet.jsp.tagext.SimpleTag
        Overrides:
        doTag in class javax.servlet.jsp.tagext.SimpleTagSupport
        Throws:
        javax.servlet.jsp.JspException
        java.io.IOException
        See Also:
        SimpleTag.doTag()
      • setVarPageDesignDetails

        public void setVarPageDesignDetails(java.lang.String varName)
        Setter for Page Design details variable name
        Parameters:
        String - - Set the variable name which contains the Page Design SDO object.
      • setVarPageDesignDetailsJSON

        public void setVarPageDesignDetailsJSON(java.lang.String varName)
        Setter for Page Design details JSON variable name
        Parameters:
        String - - Set the variable name which contains the Page Design JSON object.