Interface EventTagDeclaration
- All Superinterfaces:
HasAction, HasActionListener, HasBinding, HasConfirmation, HasFragment, HasId, HasIdBindingAndRendered, HasLink, HasOutcome, HasTarget, IsDisabledBySecurity, IsImmediateCommand, IsOmit, IsRendered, IsTransition
public interface EventTagDeclaration
extends HasIdBindingAndRendered, HasAction, HasActionListener, IsImmediateCommand, HasConfirmation, HasLink, HasOutcome, HasFragment, IsTransition, HasTarget, IsDisabledBySecurity, IsOmit
Add an event behavior to the component.
It can contain f:ajax and tc:operation tags.
-
Method Summary
Modifier and TypeMethodDescriptionvoidsetCustomEventName(String customEventName) If set, an additional custom event (CustomEvent) triggers after the original event of the component (e.g.voidsetEvent(jakarta.el.ValueExpression event) The name of the event as an instance ofClientBehaviorsThis will be also overwrite events of possible f:ajax children.voidsetStopPropagation(String stopPropagation) Prevent the JavaScript event from bubbling up.Methods inherited from interface HasActionListener
setActionListenerMethods inherited from interface HasBinding
setBindingMethods inherited from interface HasConfirmation
setConfirmationMethods inherited from interface HasFragment
setFragmentMethods inherited from interface HasOutcome
setOutcomeMethods inherited from interface IsDisabledBySecurity
setDisabledMethods inherited from interface IsImmediateCommand
setImmediateMethods inherited from interface IsRendered
setRenderedMethods inherited from interface IsTransition
setTransition
-
Method Details
-
setEvent
void setEvent(jakarta.el.ValueExpression event) The name of the event as an instance ofClientBehaviorsThis will be also overwrite events of possible f:ajax children. -
setStopPropagation
Prevent the JavaScript event from bubbling up. -
setCustomEventName
If set, an additional custom event (CustomEvent) triggers after the original event of the component (e.g. “click” on a tc:button). The name of the custom event is defined by this attribute.
-