org.apache.myfaces.taglib.core
Class ActionListenerTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by org.apache.myfaces.taglib.core.GenericListenerTag<ActionSource,ActionListener>
          extended by org.apache.myfaces.taglib.core.ActionListenerTag
All Implemented Interfaces:
Serializable, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.Tag

@JSFJspTag(name="f:actionListener",
           bodyContent="empty")
public class ActionListenerTag
extends GenericListenerTag<ActionSource,ActionListener>

This tag creates an instance of the specified ActionListener, and associates it with the nearest parent UIComponent.

Unless otherwise specified, all attributes accept static values or EL expressions.

Version:
$Revision: 819754 $ $Date: 2009-09-28 17:27:45 -0500 (Mon, 28 Sep 2009) $
Author:
Manfred Geiler (latest modification by $Author: lu4242 $)
See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
id, pageContext
 
Fields inherited from interface javax.servlet.jsp.tagext.IterationTag
EVAL_BODY_AGAIN
 
Fields inherited from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
 
Constructor Summary
ActionListenerTag()
           
 
Method Summary
protected  void addListener(ActionSource actionSource, ActionListener actionListener)
           
protected  ActionListener createDelegateListener(javax.el.ValueExpression type, javax.el.ValueExpression binding)
           
 void setBinding(javax.el.ValueExpression binding)
          Value binding expression that evaluates to an object that implements javax.faces.event.ActionListener.
 void setType(javax.el.ValueExpression type)
          The fully qualified class name of the ActionListener class.
 
Methods inherited from class org.apache.myfaces.taglib.core.GenericListenerTag
createListener, doStartTag, release
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, doEndTag, findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ActionListenerTag

public ActionListenerTag()
Method Detail

addListener

protected void addListener(ActionSource actionSource,
                           ActionListener actionListener)
Specified by:
addListener in class GenericListenerTag<ActionSource,ActionListener>

createDelegateListener

protected ActionListener createDelegateListener(javax.el.ValueExpression type,
                                                javax.el.ValueExpression binding)
Specified by:
createDelegateListener in class GenericListenerTag<ActionSource,ActionListener>

setType

@JSFJspAttribute(className="javax.el.ValueExpression",
                 deferredValueType="java.lang.String")
public void setType(javax.el.ValueExpression type)
The fully qualified class name of the ActionListener class.

Overrides:
setType in class GenericListenerTag<ActionSource,ActionListener>

setBinding

@JSFJspAttribute(className="javax.el.ValueExpression",
                 deferredValueType="javax.faces.event.ActionListener")
public void setBinding(javax.el.ValueExpression binding)
Value binding expression that evaluates to an object that implements javax.faces.event.ActionListener.

Overrides:
setBinding in class GenericListenerTag<ActionSource,ActionListener>


Copyright © 2010 The Apache Software Foundation. All Rights Reserved.