java.lang.Object
jakarta.faces.render.ClientBehaviorRenderer
com.sun.faces.renderkit.html_basic.AjaxBehaviorRenderer
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
decode
(FacesContext context, UIComponent component, ClientBehavior behavior) Decode any new state of thisClientBehavior
from the request contained in the specifiedFacesContext
.getScript
(ClientBehaviorContext behaviorContext, ClientBehavior behavior) Return the script that implements this ClientBehavior's client-side logic.
-
Field Details
-
logger
-
-
Constructor Details
-
AjaxBehaviorRenderer
public AjaxBehaviorRenderer()
-
-
Method Details
-
getScript
Description copied from class:ClientBehaviorRenderer
Return the script that implements this ClientBehavior's client-side logic. The default implementation returns
null
.ClientBehaviorRenderer.getScript() implementations are allowed to return null to indicate that no script is required for this particular getScript() call. For example, a ClientBehaviorRenderer implementation may return null if the associated ClientBehavior is disabled.
- Overrides:
getScript
in classClientBehaviorRenderer
- Parameters:
behaviorContext
- theClientBehaviorContext
that provides properties that might influence this getScript() call. Note that ClientBehaviorContext instances are short-lived objects that are only valid for the duration of the call to getScript(). ClientBehaviorRenderer implementations must not hold onto references to ClientBehaviorContexts.behavior
- the ClientBehavior instance that generates script.- Returns:
- script that provides the client-side behavior, or null if no script is required.
-
decode
Description copied from class:ClientBehaviorRenderer
Decode any new state of this
ClientBehavior
from the request contained in the specifiedFacesContext
.During decoding, events may be enqueued for later processing (by event listeners who have registered an interest), by calling
queueEvent()
.- Overrides:
decode
in classClientBehaviorRenderer
- Parameters:
context
-FacesContext
for the request we are processingcomponent
-UIComponent
the component associated with thisBehavior
behavior
-ClientBehavior
the behavior instance
-