@Generated(value={"RichFaces CDK","4.5.0-SNAPSHOT"}) public class UIFunction extends AbstractAjaxFunction implements javax.faces.component.behavior.ClientBehaviorHolder, AjaxCommandProps, BypassProps
The <a4j:jsFunction> component performs Ajax requests directly from JavaScript code and retrieves server-side data. The server-side data is returned in JavaScript Object Notation (JSON) format prior to the execution of any JavaScript code defined using the "oncomplete" attribute.
| Modifier and Type | Class and Description |
|---|---|
protected static class |
UIFunction.Properties |
| Modifier and Type | Field and Description |
|---|---|
static String |
COMPONENT_FAMILY |
static String |
COMPONENT_TYPE |
| Constructor and Description |
|---|
UIFunction() |
| Modifier and Type | Method and Description |
|---|---|
Object |
getData()
Serialized (on default with JSON) data passed to the client by a developer on an AJAX request.
|
String |
getDefaultEventName() |
Collection<String> |
getEventNames() |
String |
getFamily() |
String |
getName()
The name of the generated javascript function
|
String |
getOnbeforedomupdate()
The client-side script method to be called after the ajax response comes back, but before the DOM is updated
|
String |
getOnbegin()
The client-side script method to be called before an ajax request.
|
String |
getOncomplete()
The client-side script method to be called after the DOM is updated
|
String |
getOnerror()
The client-side script method to be called when the request results in an error
|
String |
getStatus()
Name of the request status component that will indicate the status of the Ajax request
|
boolean |
isBypassUpdates()
If "true", after process validations phase it skips updates of model beans on a force render response.
|
boolean |
isLimitRender()
If "true", render only those ids specified in the "render" attribute, forgoing the render of the auto-rendered panels
|
boolean |
isResetValues()
If true, indicate that this particular Ajax transaction is a value reset transaction.
|
void |
setBypassUpdates(boolean bypassUpdates) |
void |
setData(Object data) |
void |
setLimitRender(boolean limitRender) |
void |
setName(String name) |
void |
setOnbeforedomupdate(String onbeforedomupdate) |
void |
setOnbegin(String onbegin) |
void |
setOncomplete(String oncomplete) |
void |
setOnerror(String onerror) |
void |
setResetValues(boolean resetValues) |
void |
setStatus(String status) |
getExecute, getRender, setExecute, setRenderqueueEventaddActionListener, broadcast, getAction, getActionExpression, getActionListener, getActionListeners, getValue, isImmediate, removeActionListener, setAction, setActionExpression, setActionListener, setImmediate, setValueaddClientBehavior, addFacesListener, clearInitialState, decode, encodeAll, encodeBegin, encodeChildren, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientBehaviors, getClientId, getFacesContext, getFacesListeners, getFacet, getFacetCount, getFacets, getFacetsAndChildren, getId, getParent, getPassThroughAttributes, getRenderer, getRendererType, getRendersChildren, getValueBinding, invokeOnComponent, isRendered, isTransient, markInitialState, processDecodes, processRestoreState, processSaveState, processUpdates, processValidators, removeFacesListener, restoreAttachedState, restoreState, saveAttachedState, saveState, setId, setParent, setRendered, setRendererType, setTransient, setValueBinding, visitTreegetClientId, getCompositeComponentParent, getContainerClientId, getCurrentComponent, getCurrentCompositeComponent, getListenersForEventClass, getNamingContainer, getPassThroughAttributes, getResourceBundleMap, getStateHelper, getStateHelper, getTransientStateHelper, getTransientStateHelper, getValueExpression, initialStateMarked, isCompositeComponent, isInView, isVisitable, popComponentFromEL, processEvent, pushComponentToEL, restoreTransientState, saveTransientState, setInView, setValueExpression, subscribeToEvent, unsubscribeFromEventclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddClientBehavior, getClientBehaviorsgetExecutegetRenderpublic static final String COMPONENT_TYPE
public static final String COMPONENT_FAMILY
public String getFamily()
getFamily in class javax.faces.component.UICommandpublic Collection<String> getEventNames()
getEventNames in interface javax.faces.component.behavior.ClientBehaviorHoldergetEventNames in class javax.faces.component.UIComponentBasepublic String getDefaultEventName()
getDefaultEventName in interface javax.faces.component.behavior.ClientBehaviorHoldergetDefaultEventName in class javax.faces.component.UIComponentBasepublic boolean isBypassUpdates()
BypassPropsisBypassUpdates in interface BypassPropsisBypassUpdates in class BasicActionComponentpublic void setBypassUpdates(boolean bypassUpdates)
public Object getData()
AjaxActivatorPropsgetData in interface AjaxActivatorPropsgetData in class BasicActionComponentpublic void setData(Object data)
public boolean isLimitRender()
AjaxActivatorPropsisLimitRender in interface AjaxActivatorPropsisLimitRender in class BasicActionComponentpublic void setLimitRender(boolean limitRender)
public String getName()
AbstractAjaxFunctiongetName in class AbstractAjaxFunctionpublic void setName(String name)
public String getOnbeforedomupdate()
AjaxActivatorPropsgetOnbeforedomupdate in interface AjaxActivatorPropsgetOnbeforedomupdate in class BasicActionComponentpublic void setOnbeforedomupdate(String onbeforedomupdate)
public String getOnbegin()
AjaxPropsgetOnbegin in interface AjaxPropsgetOnbegin in class BasicActionComponentpublic void setOnbegin(String onbegin)
public String getOncomplete()
AjaxActivatorPropsgetOncomplete in interface AjaxActivatorPropsgetOncomplete in class BasicActionComponentpublic void setOncomplete(String oncomplete)
public String getOnerror()
ErrorPropsgetOnerror in interface ErrorPropsgetOnerror in class BasicActionComponentpublic void setOnerror(String onerror)
public boolean isResetValues()
AjaxCommandPropsisResetValues in interface AjaxCommandPropsisResetValues in class BasicActionComponentpublic void setResetValues(boolean resetValues)
public String getStatus()
AjaxPropsgetStatus in interface AjaxPropsgetStatus in class BasicActionComponentpublic void setStatus(String status)
Copyright © 2016 JBoss by Red Hat. All Rights Reserved.