java.lang.Object
jakarta.faces.render.ClientBehaviorRenderer
com.sun.faces.renderkit.html_basic.AjaxBehaviorRenderer
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddecode(FacesContext context, UIComponent component, ClientBehavior behavior) Decode any new state of thisClientBehaviorfrom 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:ClientBehaviorRendererReturn 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:
getScriptin classClientBehaviorRenderer- Parameters:
behaviorContext- theClientBehaviorContextthat 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:ClientBehaviorRendererDecode any new state of this
ClientBehaviorfrom 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:
decodein classClientBehaviorRenderer- Parameters:
context-FacesContextfor the request we are processingcomponent-UIComponentthe component associated with thisBehaviorbehavior-ClientBehaviorthe behavior instance
-