org.loom.tags.core
Class ScriptTag
java.lang.Object
javax.servlet.jsp.tagext.SimpleTagSupport
org.loom.tags.AbstractTag
org.loom.tags.core.AbstractWebResourceTag
org.loom.tags.core.ScriptTag
- All Implemented Interfaces:
- javax.servlet.jsp.tagext.DynamicAttributes, javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.SimpleTag, LoomTag, ParameterContainer
@Tag(dynamicAttributes=true,
bodyContent=SCRIPTLESS,
example="<l:script src=\"/js/IE7.js\" ieLessThan=\"7\"/>\n<l:script action=\"Resources\" event=\"pull\"/>\n<l:script resource=\"admin-javascript-resources\"/>")
public class ScriptTag- extends AbstractWebResourceTag
HTML script tag.
Javascript files can be delivered one by one or bundled together as a web resource
configured using your DI engine.
|
Method Summary |
void |
printTag()
print just the tag |
void |
setCharset(java.lang.String charset)
|
void |
setDefer(java.lang.Boolean defer)
|
void |
setLanguage(java.lang.String language)
|
void |
setSrc(java.lang.String href)
HTML attribute
The target url, or alternatively use the action and event properties |
| Methods inherited from class org.loom.tags.core.AbstractWebResourceTag |
addParameter, doTagImpl, endTag, getContents, getResource, getType, getUrl, getUrlBuilder, initTag, setAction, setEvent, setHostname, setIeLessThan, setMapping, setPort, setRawUrl, setRelative, setRequest, setResource, setScheme, setType, setUrl |
| Methods inherited from class org.loom.tags.AbstractTag |
createWriterWrapper, doBody, doBufferedBody, doTag, evaluateExpression, getActionProperty, getAncestorWithClass, getBufferedBody, getExtendedAttributes, getMessagesRepository, getPageContext, getRequest, getResponse, getScopedAttribute, getWriter, printParentAttributes, removeScopedAttribute, setDynamicAttribute, setExtendedAttribute, setJspContext, setResponse, setScopedAttribute, setWriter |
| Methods inherited from class javax.servlet.jsp.tagext.SimpleTagSupport |
findAncestorWithClass, getJspBody, getJspContext, getParent, setJspBody, setParent |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ScriptTag
public ScriptTag()
printTag
public void printTag()
throws javax.servlet.jsp.JspException,
java.io.IOException
- Description copied from class:
AbstractWebResourceTag
- print just the tag
- Specified by:
printTag in class AbstractWebResourceTag
- Throws:
javax.servlet.jsp.JspException
java.io.IOException
setSrc
@Attribute
public void setSrc(java.lang.String href)
- HTML attribute
The target url, or alternatively use the action and event properties
setCharset
public void setCharset(java.lang.String charset)
setDefer
public void setDefer(java.lang.Boolean defer)
setLanguage
public void setLanguage(java.lang.String language)