org.apache.myfaces.tobago.taglib.component
Class ScriptTag
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.tagext.BodyTagSupport
org.apache.myfaces.tobago.taglib.component.ScriptTag
- All Implemented Interfaces:
- java.io.Serializable, javax.servlet.jsp.tagext.BodyTag, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.Tag
public class ScriptTag
- extends javax.servlet.jsp.tagext.BodyTagSupport
This tag add client side script to the rendered page.
- See Also:
- Serialized Form
Fields inherited from class javax.servlet.jsp.tagext.BodyTagSupport |
bodyContent |
Fields inherited from class javax.servlet.jsp.tagext.TagSupport |
id, pageContext |
Fields inherited from interface javax.servlet.jsp.tagext.BodyTag |
EVAL_BODY_BUFFERED, EVAL_BODY_TAG |
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 |
Method Summary |
int |
doEndTag()
|
int |
doStartTag()
|
java.lang.String |
getFile()
|
java.lang.String |
getOnload()
|
void |
release()
|
void |
setFile(java.lang.String file)
Absolute url to script file or script name to lookup in tobago resource path |
void |
setOnexit(java.lang.String onexit)
A script function which is invoked during onUnload Handler on the client,
when the unload is invoked to a non Tobago page. |
void |
setOnload(java.lang.String onload)
A script function which is invoked during onLoad Handler on the client. |
void |
setOnsubmit(java.lang.String onsubmit)
A script function which is invoked on client just before submitting the action. |
void |
setOnunload(java.lang.String onunload)
A script function which is invoked during onUnload Handler on the client,
if the action is a normal submit inside of Tobago. |
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport |
doAfterBody, doInitBody, getBodyContent, getPreviousOut, setBodyContent |
Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
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 |
Methods inherited from interface javax.servlet.jsp.tagext.Tag |
getParent, setPageContext, setParent |
ScriptTag
public ScriptTag()
doEndTag
public int doEndTag()
throws javax.servlet.jsp.JspException
- Specified by:
doEndTag
in interface javax.servlet.jsp.tagext.Tag
- Overrides:
doEndTag
in class javax.servlet.jsp.tagext.BodyTagSupport
- Throws:
javax.servlet.jsp.JspException
doStartTag
public int doStartTag()
throws javax.servlet.jsp.JspException
- Specified by:
doStartTag
in interface javax.servlet.jsp.tagext.Tag
- Overrides:
doStartTag
in class javax.servlet.jsp.tagext.BodyTagSupport
- Throws:
javax.servlet.jsp.JspException
release
public void release()
- Specified by:
release
in interface javax.servlet.jsp.tagext.Tag
- Overrides:
release
in class javax.servlet.jsp.tagext.BodyTagSupport
getFile
public java.lang.String getFile()
setFile
public void setFile(java.lang.String file)
- Absolute url to script file or script name to lookup in tobago resource path
getOnload
public java.lang.String getOnload()
setOnload
public void setOnload(java.lang.String onload)
- A script function which is invoked during onLoad Handler on the client.
setOnunload
public void setOnunload(java.lang.String onunload)
- A script function which is invoked during onUnload Handler on the client,
if the action is a normal submit inside of Tobago.
setOnexit
public void setOnexit(java.lang.String onexit)
- A script function which is invoked during onUnload Handler on the client,
when the unload is invoked to a non Tobago page.
E.g. close-button, back-button, entering new url, etc.
setOnsubmit
public void setOnsubmit(java.lang.String onsubmit)
- A script function which is invoked on client just before submitting the action.
This should be a single function call. If the result is typeof 'boolean' and false
the further processing is canceled and the page is not submitted.
Copyright © 2002-2014 The Apache Software Foundation. All Rights Reserved.