Top Fields Constructors Methods
com.sun.faces.renderkit.html_basic

public Class AjaxBehaviorRenderer

extends ClientBehaviorRenderer
Class Inheritance
Imports
java.util.Collection, .Collections, .LinkedList, .EnumSet, .Set, java.util.logging.Level, .Logger, javax.faces.component.ActionSource, .EditableValueHolder, .UIComponent, .UINamingContainer, javax.faces.component.behavior.AjaxBehavior, .ClientBehavior, .ClientBehaviorContext, javax.faces.component.html.HtmlCommandScript, javax.faces.context.FacesContext, javax.faces.event.AjaxBehaviorEvent, .PhaseId, javax.faces.render.ClientBehaviorRenderer, com.sun.faces.renderkit.RenderKitUtils, com.sun.faces.util.FacesLogger, javax.faces.component.search.ComponentNotFoundException, .SearchExpressionContext, .SearchExpressionHandler, .SearchExpressionHint

Field Summary

Modifier and TypeField and Description
private static final Set<SearchExpressionHint>
protected static final Logger

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private static void
appendIds(FacesContext facesContext, UIComponent component, StringBuilder builder, Collection<String> ids)

private static String
buildAjaxCommand(ClientBehaviorContext behaviorContext, AjaxBehavior ajaxBehavior)

private static AjaxBehaviorEvent
createEvent(FacesContext facesContext, UIComponent component, AjaxBehavior ajaxBehavior)

public void
decode(FacesContext
FacesContext for the request we are processing
context
,
UIComponent
UIComponent the component associated with this javax.faces.component.behavior.Behavior
component
,
ClientBehavior
ClientBehavior the behavior instance
behavior
)

Overrides javax.faces.render.ClientBehaviorRenderer.decode.

Decode any new state of this ClientBehavior from the request contained in the specified FacesContext.

private static String
public String
getScript(ClientBehaviorContext
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.
behaviorContext
,
ClientBehavior
the ClientBehavior instance that generates script.
behavior
)

Overrides javax.faces.render.ClientBehaviorRenderer.getScript.

Return the script that implements this ClientBehavior's client-side logic.

private static boolean
isImmediate(UIComponent component, AjaxBehavior ajaxBehavior)

Field Detail

EXPRESSION_HINTSback to summary
private static final Set<SearchExpressionHint> EXPRESSION_HINTS
loggerback to summary
protected static final Logger logger

Constructor Detail

AjaxBehaviorRendererback to summary
public AjaxBehaviorRenderer()

Method Detail

appendIdsback to summary
private static void appendIds(FacesContext facesContext, UIComponent component, StringBuilder builder, Collection<String> ids)
buildAjaxCommandback to summary
private static String buildAjaxCommand(ClientBehaviorContext behaviorContext, AjaxBehavior ajaxBehavior)
createEventback to summary
private static AjaxBehaviorEvent createEvent(FacesContext facesContext, UIComponent component, AjaxBehavior ajaxBehavior)
decodeback to summary
public void decode(FacesContext context, UIComponent component, ClientBehavior behavior)

Overrides javax.faces.render.ClientBehaviorRenderer.decode.

Doc from javax.faces.render.ClientBehaviorRenderer.decode.

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().

Parameters
context:FacesContext

FacesContext for the request we are processing

component:UIComponent

UIComponent the component associated with this javax.faces.component.behavior.Behavior

behavior:ClientBehavior

ClientBehavior the behavior instance

Annotations
@Override
getResolvedIdback to summary
private static String getResolvedId(UIComponent component, String id)
getScriptback to summary
public String getScript(ClientBehaviorContext behaviorContext, ClientBehavior behavior)

Overrides javax.faces.render.ClientBehaviorRenderer.getScript.

Doc from javax.faces.render.ClientBehaviorRenderer.getScript.

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.

Parameters
behaviorContext:ClientBehaviorContext

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:ClientBehavior

the ClientBehavior instance that generates script.

Returns:String

script that provides the client-side behavior, or null if no script is required.

Annotations
@Override
isImmediateback to summary
private static boolean isImmediate(UIComponent component, AjaxBehavior ajaxBehavior)