org.apache.myfaces.custom.updateactionlistener
Class UpdateActionListenerTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by org.apache.myfaces.custom.updateactionlistener.UpdateActionListenerTag
All Implemented Interfaces:
java.io.Serializable, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.Tag

public class UpdateActionListenerTag
extends javax.servlet.jsp.tagext.TagSupport

Registers an org.apache.myfaces.custom.updateactionlistener.UpdateActionListener at the parent component (which must be an ActionSource). When the parent's action fires the specified value is evaluated, then written into the specified property. Unless otherwise specified, all attributes accept static values or EL expressions. JSF 1.2 introduces a "setPropertyActionListener" with the same functionality like this.

Version:
$Revision: 692184 $ $Date: 2008-09-04 13:21:52 -0500 (Thu, 04 Sep 2008) $
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
UpdateActionListenerTag()
           
 
Method Summary
 int doStartTag()
           
 void release()
           
 void setConverter(java.lang.String converter)
          The name of a registered Converter object which will be invoked to convert the value into an appropriate datatype for assigning to the specified property.
 void setProperty(javax.el.ValueExpression property)
          A value-binding that specifies a property to be updated when the parent's action occurs.
 void setValue(javax.el.ValueExpression value)
          A literal value or value-binding that specifies what will be assigned to the destination specified by the property attribute.
 
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

UpdateActionListenerTag

public UpdateActionListenerTag()
Method Detail

setProperty

public void setProperty(javax.el.ValueExpression property)
A value-binding that specifies a property to be updated when the parent's action occurs.


setValue

public void setValue(javax.el.ValueExpression value)
A literal value or value-binding that specifies what will be assigned to the destination specified by the property attribute.


setConverter

public void setConverter(java.lang.String converter)
The name of a registered Converter object which will be invoked to convert the value into an appropriate datatype for assigning to the specified property. If not specified then an appropriate converter will be selected automatically.


doStartTag

public int doStartTag()
               throws javax.servlet.jsp.JspException
Specified by:
doStartTag in interface javax.servlet.jsp.tagext.Tag
Overrides:
doStartTag in class javax.servlet.jsp.tagext.TagSupport
Throws:
javax.servlet.jsp.JspException

release

public void release()
Specified by:
release in interface javax.servlet.jsp.tagext.Tag
Overrides:
release in class javax.servlet.jsp.tagext.TagSupport


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