Top Description Inners Fields Constructors Methods
com.sun.faces.component.behavior

public Class AjaxBehaviors

extends Object
implements Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable
Imports
java.io.Serializable, java.util.ArrayDeque, .Iterator, .List, .Map, .Set, jakarta.faces.application.Application, jakarta.faces.component.behavior.AjaxBehavior, .ClientBehavior, .ClientBehaviorHint, .ClientBehaviorHolder, jakarta.faces.context.FacesContext

An instance of the class is used to manage AjaxBehavior instances.

Since
2.0

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class

Field Summary

Modifier and TypeField and Description
private static final String
private ArrayDeque<AjaxBehaviors.BehaviorInfo>
private static final long

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
public static AjaxBehaviors
getAjaxBehaviors(FacesContext context, boolean createIfNull)

public void
popBehavior()

Pop the last AjaxBehavior instance from the List.

public void
pushBehavior(FacesContext
the faces context
context
,
AjaxBehavior
the AjaxBehavior instance
ajaxBehavior
,
String
the name of the event that the behavior is associated with.
eventName
)

Push the AjaxBehavior instance onto the List.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

AJAX_BEHAVIORSback to summary
private static final String AJAX_BEHAVIORS
behaviorStackback to summary
private ArrayDeque<AjaxBehaviors.BehaviorInfo> behaviorStack
serialVersionUIDback to summary
private static final long serialVersionUID

Constructor Detail

AjaxBehaviorsback to summary
public AjaxBehaviors()

Method Detail

addBehaviorsback to summary
public void addBehaviors(FacesContext context, ClientBehaviorHolder behaviorHolder)
getAjaxBehaviorsback to summary
public static AjaxBehaviors getAjaxBehaviors(FacesContext context, boolean createIfNull)
popBehaviorback to summary
public void popBehavior()

Pop the last AjaxBehavior instance from the List.

Since
2.0
pushBehaviorback to summary
public void pushBehavior(FacesContext context, AjaxBehavior ajaxBehavior, String eventName)

Push the AjaxBehavior instance onto the List.

Parameters
context:FacesContext

the faces context

ajaxBehavior:AjaxBehavior

the AjaxBehavior instance

eventName:String

the name of the event that the behavior is associated with.

Since
2.0
com.sun.faces.component.behavior back to summary

public Class AjaxBehaviors.BehaviorInfo

extends Object
implements Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable

Field Summary

Modifier and TypeField and Description
private Object
private String
private static final long

Constructor Summary

AccessConstructor and Description
public
BehaviorInfo(FacesContext context, AjaxBehavior ajaxBehavior, String eventName)

private

Method Summary

Modifier and TypeMethod and Description
public void
private ClientBehavior
private boolean
shouldAddBehavior(ClientBehaviorHolder behaviorHolder, String eventName)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

behaviorStateback to summary
private Object behaviorState
eventNameback to summary
private String eventName
serialVersionUIDback to summary
private static final long serialVersionUID

Constructor Detail

BehaviorInfoback to summary
public BehaviorInfo(FacesContext context, AjaxBehavior ajaxBehavior, String eventName)
BehaviorInfoback to summary
private BehaviorInfo()

Method Detail

addBehaviorback to summary
public void addBehavior(FacesContext context, ClientBehaviorHolder behaviorHolder)
createBehaviorback to summary
private ClientBehavior createBehavior(FacesContext context)
shouldAddBehaviorback to summary
private boolean shouldAddBehavior(ClientBehaviorHolder behaviorHolder, String eventName)