public class AjaxBehaviorRenderer
extends javax.faces.render.ClientBehaviorRenderer
Constructor and Description |
---|
AjaxBehaviorRenderer() |
Modifier and Type | Method and Description |
---|---|
void |
decode(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
javax.faces.component.behavior.ClientBehavior behavior)
Decode any new state of this |
String |
getScript(javax.faces.component.behavior.ClientBehaviorContext behaviorContext,
javax.faces.component.behavior.ClientBehavior behavior)
Return the script that implements this ClientBehavior's client-side logic. |
protected static final Logger logger
public String getScript(javax.faces.component.behavior.ClientBehaviorContext behaviorContext, javax.faces.component.behavior.ClientBehavior behavior)
javax.faces.render.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.
getScript
in class javax.faces.render.ClientBehaviorRenderer
behaviorContext
- the ClientBehaviorContext
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.public void decode(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, javax.faces.component.behavior.ClientBehavior behavior)
javax.faces.render.ClientBehaviorRenderer
Decode any new state of this ClientBehavior
from the request contained in the specified FacesContext
.
During decoding, events may be enqueued for later processing
(by event listeners who have registered an interest), by calling
queueEvent()
.
decode
in class javax.faces.render.ClientBehaviorRenderer
context
- FacesContext
for the request we are processingcomponent
- UIComponent
the component associated with this
Behavior
behavior
- ClientBehavior
the behavior instanceCopyright © 2010–2021 JBoss by Red Hat. All rights reserved.