Package jakarta.faces.component.behavior
Class AjaxBehavior
- java.lang.Object
-
- jakarta.faces.component.behavior.BehaviorBase
-
- jakarta.faces.component.behavior.ClientBehaviorBase
-
- jakarta.faces.component.behavior.AjaxBehavior
-
- All Implemented Interfaces:
Behavior
,ClientBehavior
,PartialStateHolder
,StateHolder
public class AjaxBehavior extends ClientBehaviorBase
- Since:
- 2.0
-
-
Field Summary
Fields Modifier and Type Field Description static String
BEHAVIOR_ID
not needed anymore but enforced by the spec theoretically a FacesBehavior(value = "jakarta.faces.behavior.Ajax") could do it
-
Constructor Summary
Constructors Constructor Description AjaxBehavior()
-
Method Summary
-
Methods inherited from class jakarta.faces.component.behavior.ClientBehaviorBase
decode, getRenderer, getScript
-
Methods inherited from class jakarta.faces.component.behavior.BehaviorBase
addBehaviorListener, broadcast, clearInitialState, initialStateMarked, isTransient, markInitialState, removeBehaviorListener, setTransient
-
-
-
-
Field Detail
-
BEHAVIOR_ID
public static final String BEHAVIOR_ID
not needed anymore but enforced by the spec theoretically a FacesBehavior(value = "jakarta.faces.behavior.Ajax") could do it- See Also:
- Constant Field Values
-
-
Method Detail
-
addAjaxBehaviorListener
public void addAjaxBehaviorListener(AjaxBehaviorListener listener)
-
removeAjaxBehaviorListener
public void removeAjaxBehaviorListener(AjaxBehaviorListener listener)
-
getExecute
public Collection<String> getExecute()
-
setExecute
public void setExecute(Collection<String> execute)
-
getOnerror
public String getOnerror()
-
setOnerror
public void setOnerror(String onError)
-
getOnevent
public String getOnevent()
-
setOnevent
public void setOnevent(String onEvent)
-
getRender
public Collection<String> getRender()
-
setRender
public void setRender(Collection<String> render)
-
getValueExpression
public jakarta.el.ValueExpression getValueExpression(String name)
-
setValueExpression
public void setValueExpression(String name, jakarta.el.ValueExpression expression)
-
isDisabled
public boolean isDisabled()
-
setDisabled
public void setDisabled(boolean disabled)
-
isImmediate
public boolean isImmediate()
-
setImmediate
public void setImmediate(boolean immediate)
-
isImmediateSet
public boolean isImmediateSet()
-
isResetValues
public boolean isResetValues()
- Since:
- 2.2
-
setResetValues
public void setResetValues(boolean resetValues)
- Since:
- 2.2
-
isResetValuesSet
public boolean isResetValuesSet()
- Since:
- 2.2
-
getDelay
public String getDelay()
- Returns:
- Since:
- 2.2
-
setDelay
public void setDelay(String delay)
- Parameters:
delay
-- Since:
- 2.2
-
getHints
public Set<ClientBehaviorHint> getHints()
Description copied from class:ClientBehaviorBase
- Specified by:
getHints
in interfaceClientBehavior
- Overrides:
getHints
in classClientBehaviorBase
-
getRendererType
public String getRendererType()
- Overrides:
getRendererType
in classClientBehaviorBase
-
restoreState
public void restoreState(FacesContext facesContext, Object o)
- Specified by:
restoreState
in interfaceStateHolder
- Overrides:
restoreState
in classBehaviorBase
-
saveState
public Object saveState(FacesContext facesContext)
- Specified by:
saveState
in interfaceStateHolder
- Overrides:
saveState
in classBehaviorBase
-
-