public class ProgressBarAjaxBehavior
extends com.liferay.faces.util.component.behavior.AjaxBehaviorWrapper
| Constructor and Description |
|---|
ProgressBarAjaxBehavior(javax.faces.component.behavior.AjaxBehavior ajaxBehavior,
String pollingOnsuccessCallback,
String pollingOnerrorCallback) |
| Modifier and Type | Method and Description |
|---|---|
Collection<String> |
getExecute() |
String |
getOnerror() |
String |
getOnevent()
The intention of the JSF API for this method is to return the name of the JavaScript function that will be called
in one of three circumstances:
Before the Ajax request is dispatched (data.status==="begin")
After the Ajax response is received (data.status==="complete")
After the partial response has been parsed and the DOM has been updated (data.status==="success")
In the case of progressBar, rather than returning a function name, this method needs to return an anonymous
function that recursively calls the polling function when data.status==="success".
|
Collection<String> |
getRender() |
String |
getScript(javax.faces.component.behavior.ClientBehaviorContext behaviorContext) |
javax.faces.component.behavior.AjaxBehavior |
getWrapped() |
addAjaxBehaviorListener, broadcast, clearInitialState, decode, getDelay, getHints, getRendererType, getValueExpression, initialStateMarked, isDisabled, isImmediate, isImmediateSet, isResetValues, isResetValuesSet, isTransient, markInitialState, removeAjaxBehaviorListener, restoreState, saveState, setDelay, setDisabled, setExecute, setImmediate, setOnerror, setOnevent, setRender, setResetValues, setTransient, setValueExpressionpublic ProgressBarAjaxBehavior(javax.faces.component.behavior.AjaxBehavior ajaxBehavior,
String pollingOnsuccessCallback,
String pollingOnerrorCallback)
ajaxBehavior - The wrapped AjaxBehavior.pollingOnsuccessCallback - The name of the callback which should be executed after a successful Ajax call.
This argument is used to facilitate a recursive call to the polling function of
the progressBar.pollingOnerrorCallback - The name of the callback which should be executed after an error within an Ajax
call. This argument is used to stop polling the server when an error occurs.public Collection<String> getExecute()
getExecute in class com.liferay.faces.util.component.behavior.AjaxBehaviorWrapperpublic String getOnerror()
getOnerror in class com.liferay.faces.util.component.behavior.AjaxBehaviorWrapperpublic String getOnevent()
getOnevent in class com.liferay.faces.util.component.behavior.AjaxBehaviorWrapperpublic Collection<String> getRender()
getRender in class com.liferay.faces.util.component.behavior.AjaxBehaviorWrapperpublic String getScript(javax.faces.component.behavior.ClientBehaviorContext behaviorContext)
getScript in interface javax.faces.component.behavior.ClientBehaviorgetScript in class com.liferay.faces.util.component.behavior.AjaxBehaviorWrapperpublic javax.faces.component.behavior.AjaxBehavior getWrapped()
getWrapped in interface javax.faces.FacesWrapper<javax.faces.component.behavior.AjaxBehavior>getWrapped in class com.liferay.faces.util.component.behavior.AjaxBehaviorWrapperCopyright © 2016 Liferay, Inc.. All rights reserved.