public class AjaxBehaviorRenderer extends ClientBehaviorRenderer
Constructor and Description |
---|
AjaxBehaviorRenderer() |
Modifier and Type | Method and Description |
---|---|
void |
decode(FacesContext context,
UIComponent component,
ClientBehavior behavior)
Decode any new state of this |
String |
getScript(ClientBehaviorContext behaviorContext,
ClientBehavior behavior)
Return the script that implements this ClientBehavior's client-side logic. |
protected static final Logger logger
public String getScript(ClientBehaviorContext behaviorContext, ClientBehavior behavior)
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 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(FacesContext context, UIComponent component, ClientBehavior behavior)
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 ClientBehaviorRenderer
context
- FacesContext
for the request we are processingcomponent
- UIComponent
the component associated with this
Behavior
behavior
- ClientBehavior
the behavior instanceComments to: faces-dev@eclipse.org.
Copyright © 2019 Eclipse Foundation. All rights reserved.
Use is subject to license terms.