@JSFFaceletTag(name="f:ajax") public class AjaxHandler extends TagHandler implements BehaviorHolderAttachedObjectHandler
Unless otherwise specified, all attributes accept static values or EL expressions.
According to the documentation, the tag handler implementing this tag should meet the following conditions:
Modifier and Type | Class and Description |
---|---|
static class |
AjaxHandler.AjaxBehaviorListenerImpl
Wraps a method expression in a AjaxBehaviorListener
|
Modifier and Type | Field and Description |
---|---|
static Class<?>[] |
AJAX_BEHAVIOR_LISTENER_SIG |
static String |
STANDARD_JSF_AJAX_LIBRARY_LOADED
Constant used to check if in the current build view it has been rendered the standard jsf javascript
library.
|
nextHandler, tag, tagId
Constructor and Description |
---|
AjaxHandler(TagConfig config) |
Modifier and Type | Method and Description |
---|---|
void |
apply(FaceletContext ctx,
UIComponent parent) |
void |
applyAttachedObject(FacesContext context,
UIComponent parent)
This method should create an AjaxBehavior object and attach it to the
parent component.
|
protected AjaxBehavior |
createBehavior(FacesContext context) |
String |
getEventName()
ViewDeclarationLanguage.retargetAttachedObjects uses it to check
if the the target to be processed is applicable for this handler
|
String |
getFor()
The documentation says this attribute should not be used since it is not
taken into account.
|
static void |
registerJsfAjaxDefaultResource(FaceletContext ctx,
UIComponent parent) |
getAttribute, getRequiredAttribute, toString
public static final Class<?>[] AJAX_BEHAVIOR_LISTENER_SIG
public static final String STANDARD_JSF_AJAX_LIBRARY_LOADED
public AjaxHandler(TagConfig config)
public void apply(FaceletContext ctx, UIComponent parent) throws IOException
apply
in interface FaceletHandler
IOException
public static void registerJsfAjaxDefaultResource(FaceletContext ctx, UIComponent parent)
public String getEventName()
getEventName
in interface BehaviorHolderAttachedObjectHandler
public void applyAttachedObject(FacesContext context, UIComponent parent)
applyAttachedObject
in interface AttachedObjectHandler
protected AjaxBehavior createBehavior(FacesContext context)
public String getFor()
getFor
in interface AttachedObjectHandler
Copyright © 2020 The Apache Software Foundation. All rights reserved.