|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.faces.view.facelets.TagHandler
org.apache.myfaces.view.facelets.tag.jsf.core.AjaxHandler
@JSFFaceletTag(name="f:ajax") public class AjaxHandler
This tag creates an instance of AjaxBehavior, and associates it with the nearest parent UIComponent that implements ClientBehaviorHolder interface. This tag can be used on single or composite components.
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:
Nested Class Summary | |
---|---|
static class |
AjaxHandler.AjaxBehaviorListenerImpl
Wraps a method expression in a AjaxBehaviorListener |
Field Summary | |
---|---|
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. |
Fields inherited from class javax.faces.view.facelets.TagHandler |
---|
nextHandler, tag, tagId |
Constructor Summary | |
---|---|
AjaxHandler(TagConfig config)
|
Method Summary | |
---|---|
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)
|
Methods inherited from class javax.faces.view.facelets.TagHandler |
---|
getAttribute, getRequiredAttribute, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final Class<?>[] AJAX_BEHAVIOR_LISTENER_SIG
public static final String STANDARD_JSF_AJAX_LIBRARY_LOADED
Constructor Detail |
---|
public AjaxHandler(TagConfig config)
Method Detail |
---|
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |