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 org.apache.myfaces.tobago.internal.taglib.declaration.HasAction
setActionMethods inherited from interface org.apache.myfaces.tobago.internal.taglib.declaration.HasActionListener
setActionListenerMethods inherited from interface org.apache.myfaces.tobago.internal.taglib.declaration.HasBinding
setBindingMethods inherited from interface org.apache.myfaces.tobago.internal.taglib.declaration.HasConfirmation
setConfirmationMethods inherited from interface org.apache.myfaces.tobago.internal.taglib.declaration.HasFragment
setFragmentMethods inherited from interface org.apache.myfaces.tobago.internal.taglib.declaration.HasLink
setLinkMethods inherited from interface org.apache.myfaces.tobago.internal.taglib.declaration.HasOutcome
setOutcomeMethods inherited from interface org.apache.myfaces.tobago.internal.taglib.declaration.HasTarget
setTargetMethods inherited from interface org.apache.myfaces.tobago.internal.taglib.declaration.IsDisabledBySecurity
setDisabledMethods inherited from interface org.apache.myfaces.tobago.internal.taglib.declaration.IsImmediateCommand
setImmediateMethods inherited from interface org.apache.myfaces.tobago.internal.taglib.declaration.IsOmit
setOmitMethods inherited from interface org.apache.myfaces.tobago.internal.taglib.declaration.IsRendered
setRenderedMethods inherited from interface org.apache.myfaces.tobago.internal.taglib.declaration.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.
-