|
||||||||||
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 java.lang.Class<?>[] |
AJAX_BEHAVIOR_LISTENER_SIG
|
static java.lang.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. |
java.lang.String |
getEventName()
ViewDeclarationLanguage.retargetAttachedObjects uses it to check if the the target to be processed is applicable for this handler |
java.lang.String |
getFor()
The documentation says this attribute should not be used since it is not taken into account. |
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 java.lang.Class<?>[] AJAX_BEHAVIOR_LISTENER_SIG
public static final java.lang.String STANDARD_JSF_AJAX_LIBRARY_LOADED
Constructor Detail |
---|
public AjaxHandler(TagConfig config)
Method Detail |
---|
public void apply(FaceletContext ctx, UIComponent parent) throws java.io.IOException
apply
in interface FaceletHandler
java.io.IOException
public java.lang.String getEventName()
getEventName
in interface BehaviorHolderAttachedObjectHandler
public void applyAttachedObject(FacesContext context, UIComponent parent)
applyAttachedObject
in interface AttachedObjectHandler
public java.lang.String getFor()
getFor
in interface AttachedObjectHandler
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |