org.apache.myfaces.trinidad.webapp
Class UIXComponentTag

java.lang.Object
  extended by javax.faces.webapp.UIComponentTag
      extended by org.apache.myfaces.trinidad.webapp.UIXComponentTag
All Implemented Interfaces:
javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.Tag

public abstract class UIXComponentTag
extends javax.faces.webapp.UIComponentTag

Subclass of UIComponentTag to add convenience methods, and optimize where appropriate.


Field Summary
 
Fields inherited from class javax.faces.webapp.UIComponentTag
pageContext
 
Fields inherited from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
 
Constructor Summary
UIXComponentTag()
           
 
Method Summary
protected  javax.faces.el.MethodBinding createMethodBinding(java.lang.String string, java.lang.Class[] types)
           
protected  javax.faces.el.ValueBinding createValueBinding(java.lang.String string)
           
 int doEndTag()
           
 int doStartTag()
           
protected  void encodeBegin()
           
 void setAttributeChangeListener(java.lang.String attributeChangeListener)
           
protected  void setBooleanProperty(FacesBean bean, PropertyKey key, java.lang.String value)
          Set a property of type java.lang.Boolean.
protected  void setCharacterProperty(FacesBean bean, PropertyKey key, java.lang.String value)
          Set a property of type java.lang.Character.
protected  void setDateProperty(FacesBean bean, PropertyKey key, java.lang.String value)
          Set a property of type java.util.Date.
protected  void setDoubleProperty(FacesBean bean, PropertyKey key, java.lang.String value)
          Set a property of type java.lang.Double.
protected  void setFloatProperty(FacesBean bean, PropertyKey key, java.lang.String value)
          Set a property of type java.lang.Float.
 void setId(java.lang.String id)
           
protected  void setIntArrayProperty(FacesBean bean, PropertyKey key, java.lang.String value)
          Set a property of type int[].
protected  void setIntegerProperty(FacesBean bean, PropertyKey key, java.lang.String value)
          Set a property of type java.lang.Integer.
protected  void setLongProperty(FacesBean bean, PropertyKey key, java.lang.String value)
          Set a property of type java.lang.Long.
protected  void setMaxDateProperty(FacesBean bean, PropertyKey key, java.lang.String value)
          Set a property of type java.util.Date.
protected  void setNumberProperty(FacesBean bean, PropertyKey key, java.lang.String value)
          Set a property of type java.lang.Number.
protected  void setProperties(FacesBean bean)
           
protected  void setProperties(javax.faces.component.UIComponent component)
           
protected  void setProperty(FacesBean bean, PropertyKey key, java.lang.String value)
           
 void setRendered(java.lang.String rendered)
           
protected  void setStringArrayProperty(FacesBean bean, PropertyKey key, java.lang.String value)
          Set a property of type java.lang.String[].
protected  void setValidationError(java.lang.String validationError)
          Sets any fatal validation error that could have happened during property setting.
 
Methods inherited from class javax.faces.webapp.UIComponentTag
encodeChildren, encodeEnd, findComponent, getComponentInstance, getComponentType, getCreated, getDoEndValue, getDoStartValue, getFacesContext, getFacetName, getId, getParent, getParentUIComponentTag, getRendererType, isSuppressed, isValueReference, release, setBinding, setPageContext, setParent, setupResponseWriter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UIXComponentTag

public UIXComponentTag()
Method Detail

setId

public void setId(java.lang.String id)
Overrides:
setId in class javax.faces.webapp.UIComponentTag

setRendered

public void setRendered(java.lang.String rendered)
Overrides:
setRendered in class javax.faces.webapp.UIComponentTag

setAttributeChangeListener

public void setAttributeChangeListener(java.lang.String attributeChangeListener)

doStartTag

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

doEndTag

public int doEndTag()
             throws javax.servlet.jsp.JspException
Specified by:
doEndTag in interface javax.servlet.jsp.tagext.Tag
Overrides:
doEndTag in class javax.faces.webapp.UIComponentTag
Throws:
javax.servlet.jsp.JspException

encodeBegin

protected void encodeBegin()
                    throws java.io.IOException
Overrides:
encodeBegin in class javax.faces.webapp.UIComponentTag
Throws:
java.io.IOException

setProperties

protected final void setProperties(javax.faces.component.UIComponent component)
Overrides:
setProperties in class javax.faces.webapp.UIComponentTag

setProperty

protected void setProperty(FacesBean bean,
                           PropertyKey key,
                           java.lang.String value)

setBooleanProperty

protected void setBooleanProperty(FacesBean bean,
                                  PropertyKey key,
                                  java.lang.String value)
Set a property of type java.lang.Boolean. If the value is an EL expression, it will be stored as a ValueBinding. Otherwise, it will parsed with Integer.valueOf(). Null values are ignored.


setNumberProperty

protected void setNumberProperty(FacesBean bean,
                                 PropertyKey key,
                                 java.lang.String value)
Set a property of type java.lang.Number. If the value is an EL expression, it will be stored as a ValueBinding. Otherwise, it will parsed with Integer.valueOf() or Double.valueOf() . Null values are ignored.


setIntegerProperty

protected void setIntegerProperty(FacesBean bean,
                                  PropertyKey key,
                                  java.lang.String value)
Set a property of type java.lang.Integer. If the value is an EL expression, it will be stored as a ValueBinding. Otherwise, it will parsed with Integer.valueOf(). Null values are ignored.


setCharacterProperty

protected void setCharacterProperty(FacesBean bean,
                                    PropertyKey key,
                                    java.lang.String value)
Set a property of type java.lang.Character. If the value is an EL expression, it will be stored as a ValueBinding. Otherwise, its first character will be stored (unless it is an empty string, in which case it will be ignored). Null values are ignored.


setLongProperty

protected void setLongProperty(FacesBean bean,
                               PropertyKey key,
                               java.lang.String value)
Set a property of type java.lang.Long. If the value is an EL expression, it will be stored as a ValueBinding. Otherwise, it will parsed with Long.valueOf(). Null values are ignored.


setDoubleProperty

protected void setDoubleProperty(FacesBean bean,
                                 PropertyKey key,
                                 java.lang.String value)
Set a property of type java.lang.Double. If the value is an EL expression, it will be stored as a ValueBinding. Otherwise, it will parsed with Double.valueOf(). Null values are ignored.


setFloatProperty

protected void setFloatProperty(FacesBean bean,
                                PropertyKey key,
                                java.lang.String value)
Set a property of type java.lang.Float. If the value is an EL expression, it will be stored as a ValueBinding. Otherwise, it will parsed with Float.valueOf(). Null values are ignored.


setStringArrayProperty

protected void setStringArrayProperty(FacesBean bean,
                                      PropertyKey key,
                                      java.lang.String value)
Set a property of type java.lang.String[]. If the value is an EL expression, it will be stored as a ValueBinding. Otherwise, it will parsed as a whitespace-separated series of strings. Null values are ignored.


setIntArrayProperty

protected void setIntArrayProperty(FacesBean bean,
                                   PropertyKey key,
                                   java.lang.String value)
Set a property of type int[]. If the value is an EL expression, it will be stored as a ValueBinding. Otherwise, it will parsed as a whitespace-separated series of ints. Null values are ignored.


setDateProperty

protected void setDateProperty(FacesBean bean,
                               PropertyKey key,
                               java.lang.String value)
Set a property of type java.util.Date. If the value is an EL expression, it will be stored as a ValueBinding. Otherwise, it will parsed as an ISO 8601 date (yyyy-MM-dd). Null values are ignored.


setMaxDateProperty

protected void setMaxDateProperty(FacesBean bean,
                                  PropertyKey key,
                                  java.lang.String value)
Set a property of type java.util.Date. If the value is an EL expression, it will be stored as a ValueBinding. Otherwise, it will parsed as an ISO 8601 date (yyyy-MM-dd) and the time components (hour, min, second, millisecond) maximized. Null values are ignored.


createValueBinding

protected final javax.faces.el.ValueBinding createValueBinding(java.lang.String string)

createMethodBinding

protected final javax.faces.el.MethodBinding createMethodBinding(java.lang.String string,
                                                                 java.lang.Class[] types)

setProperties

protected void setProperties(FacesBean bean)

setValidationError

protected void setValidationError(java.lang.String validationError)
Sets any fatal validation error that could have happened during property setting. If this is set, tag execution aborts with a JspException at the end of doStartTag().

Parameters:
validationError -


Copyright © 2001-2008 The Apache Software Foundation. All Rights Reserved.