-
- All Known Subinterfaces:
- ClientBehavior
- All Known Implementing Classes:
- AjaxBehavior, BehaviorBase, ClientBehaviorBase
public interface Behavior
The Behavior interface is the root API of the component behavior model. Behaviors are objects that are attached to
UIComponent
s in order to enhance components with functionality not explicitly defined by the component implementation itself. The component behavior API is intended to support different types of behavior contracts, and possibly different types of interactions between behaviors and components. The first such contract is theClientBehavior
, which defines a mechanism by which script-producing behaviors attach scripts to components for execution on the client. In the future other types of behavior contracts may be added.Like other attached objects (converters, validators) Behavior instances are created via the
Application
object. SeeApplication.createBehavior(java.lang.String)
for more details.- Since:
- 2.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description void
broadcast(BehaviorEvent event)
Broadcast the specified
BehaviorEvent
to all registered event listeners who have expressed an interest in events of this type.
-
-
-
Method Detail
-
broadcast
void broadcast(BehaviorEvent event)
Broadcast the specified
BehaviorEvent
to all registered event listeners who have expressed an interest in events of this type. Listeners are called in the order in which they were added.- Parameters:
event
- TheBehaviorEvent
to be broadcast- Throws:
AbortProcessingException
- Signal the JavaServer Faces implementation that no further processing on the current event should be performedIllegalArgumentException
- if the implementation class of thisBehaviorEvent
is not supported by this componentNullPointerException
- ifevent
isnull
- Since:
- 2.0
-
-
Document created the 11/06/2005, last modified the 18/08/2025
Source of the printed document:https://www.gaudry.be/en/java-api-javaee-rf-javax/faces/component/behavior/Behavior.html
The infobrol is a personal site whose content is my sole responsibility. The text is available under CreativeCommons license (BY-NC-SA). More info on the terms of use and the author.
References
These references and links indicate documents consulted during the writing of this page, or which may provide additional information, but the authors of these sources can not be held responsible for the content of this page.
The author of this site is solely responsible for the way in which the various concepts, and the freedoms that are taken with the reference works, are presented here. Remember that you must cross multiple source information to reduce the risk of errors.