org.apache.myfaces.tobago.internal.taglib.component
Class AttributeTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by org.apache.myfaces.tobago.internal.taglib.component.AttributeTag
All Implemented Interfaces:
Serializable, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.Tag
Direct Known Subclasses:
AttributeTag

public abstract class AttributeTag
extends javax.servlet.jsp.tagext.TagSupport

Add an attribute on the UIComponent associated with the closest parent UIComponent custom action.

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
AttributeTag()
           
 
Method Summary
 int doStartTag()
           
abstract  Object getNameAsBindingOrExpression()
           
abstract  String getNameExpression()
           
abstract  String getNameValue()
          The name of the attribute in the parent component.
abstract  Object getValueAsBindingOrExpression()
           
abstract  String getValueExpression()
           
abstract  String getValueValue()
          The value of the attribute in the parent component.
abstract  boolean isNameLiteral()
           
abstract  boolean isValueLiteral()
           
 void setMode(String mode)
          Warning: The mode is only available when using Facelets.
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, doEndTag, findAncestorWithClass, getId, getParent, getValue, getValues, release, 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

AttributeTag

public AttributeTag()
Method Detail

isNameLiteral

public abstract boolean isNameLiteral()

getNameAsBindingOrExpression

public abstract Object getNameAsBindingOrExpression()

getNameValue

public abstract String getNameValue()
The name of the attribute in the parent component.


getNameExpression

public abstract String getNameExpression()

isValueLiteral

public abstract boolean isValueLiteral()

getValueAsBindingOrExpression

public abstract Object getValueAsBindingOrExpression()

getValueValue

public abstract String getValueValue()
The value of the attribute in the parent component.


getValueExpression

public abstract String getValueExpression()

setMode

public void setMode(String mode)
Warning: The mode is only available when using Facelets. Allowed values are "action", "actionListener", "actionFromValue", "isNotSet", "isSet", "valueIfSet".
"action" (method binding) evaluate the expression to find the method binding which is referenced with the template.
"actionListener" same as "action" but for the method signature of ActionListeners.
"isSet" (boolean) checks, if the expression is set from the composition caller.
"isNotSet" (boolean) negation of "isSet"
"actionFromValue" Evaluates the ValueBinding to get an outcome set directly (no action method)
"valueIfSet" set the attribute only if the value is set.


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 - if a JSP error occurs


Copyright © 2002-2013 The Apache Software Foundation. All Rights Reserved.