Class BehaviorTagHandlerDelegate
- java.lang.Object
-
- jakarta.faces.view.facelets.TagHandlerDelegate
-
- org.apache.myfaces.view.facelets.tag.faces.BehaviorTagHandlerDelegate
-
- All Implemented Interfaces:
AttachedObjectHandler
,BehaviorHolderAttachedObjectHandler
public class BehaviorTagHandlerDelegate extends TagHandlerDelegate implements BehaviorHolderAttachedObjectHandler
- Since:
- 2.0
- Version:
- $Revision$ $Date$
- Author:
- Leonardo Uribe (latest modification by $Author$)
-
-
Constructor Summary
Constructors Constructor Description BehaviorTagHandlerDelegate(BehaviorHandler delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
apply(FaceletContext ctx, UIComponent parent)
void
applyAttachedObject(FacesContext context, UIComponent parent)
Create a ClientBehavior and attach it to the componentprotected Behavior
createBehavior(FaceletContext ctx)
MetaRuleset
createMetaRuleset(Class type)
This tag call _delegate.setAttributes, so the returned MetaRuleset should ignore attributes that are not supposed to be there like "binding" and "event"String
getEventName()
String
getFor()
-
-
-
Constructor Detail
-
BehaviorTagHandlerDelegate
public BehaviorTagHandlerDelegate(BehaviorHandler delegate)
-
-
Method Detail
-
apply
public void apply(FaceletContext ctx, UIComponent parent) throws IOException
- Specified by:
apply
in classTagHandlerDelegate
- Throws:
IOException
-
createBehavior
protected Behavior createBehavior(FaceletContext ctx)
-
createMetaRuleset
public MetaRuleset createMetaRuleset(Class type)
This tag call _delegate.setAttributes, so the returned MetaRuleset should ignore attributes that are not supposed to be there like "binding" and "event"- Specified by:
createMetaRuleset
in classTagHandlerDelegate
-
applyAttachedObject
public void applyAttachedObject(FacesContext context, UIComponent parent)
Create a ClientBehavior and attach it to the component- Specified by:
applyAttachedObject
in interfaceAttachedObjectHandler
-
getFor
public String getFor()
- Specified by:
getFor
in interfaceAttachedObjectHandler
-
getEventName
public String getEventName()
- Specified by:
getEventName
in interfaceBehaviorHolderAttachedObjectHandler
-
-