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:
- Serializable, BodyTag, IterationTag, JspTag, Tag
public class ScriptTag
- extends BodyTagSupport
This tag add client side script to the rendered page.
- See Also:
- Serialized Form
Method Summary |
int |
doEndTag()
|
int |
doStartTag()
|
String |
getFile()
|
String |
getOnload()
|
void |
release()
|
void |
setFile(String file)
Absolute url to script file or script name to lookup in tobago resource path |
void |
setOnexit(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(String onload)
A script function which is invoked during onLoad Handler on the client. |
void |
setOnsubmit(String onsubmit)
A script function which is invoked on client just before submitting the action. |
void |
setOnunload(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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ScriptTag
public ScriptTag()
doEndTag
public int doEndTag()
throws JspException
- Specified by:
doEndTag
in interface Tag
- Overrides:
doEndTag
in class BodyTagSupport
- Throws:
JspException
doStartTag
public int doStartTag()
throws JspException
- Specified by:
doStartTag
in interface Tag
- Overrides:
doStartTag
in class BodyTagSupport
- Throws:
JspException
release
public void release()
- Specified by:
release
in interface Tag
- Overrides:
release
in class BodyTagSupport
getFile
public String getFile()
setFile
public void setFile(String file)
- Absolute url to script file or script name to lookup in tobago resource path
getOnload
public String getOnload()
setOnload
public void setOnload(String onload)
- A script function which is invoked during onLoad Handler on the client.
setOnunload
public void setOnunload(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(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(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-2008 Apache Software Foundation. All Rights Reserved.