|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.servlet.jsp.tagext.TagSupport
com.cc.framework.taglib.base.AjaxTag
AJAX Tag
Field Summary | |
private java.lang.String |
onajaxerror
Error JavaScript handler |
private java.lang.String |
onajaxsuccess
Success JavaScript handler |
private java.lang.String |
onajaxtimeout
Timeout JavaScript handler |
private static long |
serialVersionUID
Serial Version UID |
private int |
timeout
The AJAX timeout in milliseconds |
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 | |
AjaxTag()
|
Method Summary | |
protected AjaxSettings |
createSettings()
|
int |
doAfterBody()
|
int |
doEndTag()
|
int |
doStartTag()
|
void |
release()
|
protected void |
reset()
|
void |
setOnajaxerror(java.lang.String handler)
A function reference assigned will be called after onComplete, if the statusCode ! |
void |
setOnajaxsuccess(java.lang.String handler)
A function reference assigned will be called after onComplete, if the statusCode=200 |
void |
setOnajaxtimeout(java.lang.String handler)
If a timeout period is set, and it is reached before a response is received, a function reference assigned to onTimeout will be called |
void |
setPageContext(javax.servlet.jsp.PageContext pc)
|
void |
setTimeout(java.lang.String millis)
Sets the AJAX timeout in milliseconds |
Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setParent, setValue |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final long serialVersionUID
private int timeout
private java.lang.String onajaxtimeout
private java.lang.String onajaxsuccess
private java.lang.String onajaxerror
Constructor Detail |
public AjaxTag()
Method Detail |
public void release()
Tag.release()
public void setPageContext(javax.servlet.jsp.PageContext pc)
Tag.setPageContext(PageContext pc)
protected void reset()
protected AjaxSettings createSettings()
public int doStartTag() throws javax.servlet.jsp.JspException
javax.servlet.jsp.JspException
TagSupport.doStartTag()
public int doAfterBody() throws javax.servlet.jsp.JspException
javax.servlet.jsp.JspException
TagSupport.doAfterBody()
public int doEndTag() throws javax.servlet.jsp.JspException
javax.servlet.jsp.JspException
TagSupport.doEndTag()
public void setTimeout(java.lang.String millis) throws javax.servlet.jsp.JspException
millis
- time in milliseconds
javax.servlet.jsp.JspException
public void setOnajaxtimeout(java.lang.String handler)
handler
- The JavaScript event handlerpublic void setOnajaxsuccess(java.lang.String handler)
handler
- The JavaScript event handlerpublic void setOnajaxerror(java.lang.String handler)
handler
- The JavaScript event handler
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |