de.mindmatters.faces.taglib.jsp
Class AbstractUIComponentTag
java.lang.Object
javax.faces.webapp.UIComponentTag
de.mindmatters.faces.taglib.jsp.AbstractUIComponentTag
- All Implemented Interfaces:
- javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.Tag
- Direct Known Subclasses:
- AbstractHtmlComponentTag
public abstract class AbstractUIComponentTag
- extends UIComponentTag
AbstractUIComponentTag is a convenience base class that
implements helper methods needed for any concrete jsp tag.
- Author:
- Andreas Kuhrwahl
Fields inherited from interface javax.servlet.jsp.tagext.Tag |
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE |
Method Summary |
protected boolean |
addValueBindingIfNecessary(UIComponent component,
java.lang.String propName,
java.lang.String value)
Adds a value binding for the property with name propName
to the UIComponent component if and only if
value is a reference expression. |
protected void |
setBooleanProperty(UIComponent component,
java.lang.String propName,
java.lang.String value)
Adds a value binding for the property with name propName
to the UIComponent component if and only if
value is a reference expression otherwise an boolean
attribute with key propName and value value . |
protected void |
setStringProperty(UIComponent component,
java.lang.String propName,
java.lang.String value)
Adds a value binding for the property with name propName
to the UIComponent component if and only if
value is a reference expression otherwise an attribute
with key propName and value value . |
Methods inherited from class javax.faces.webapp.UIComponentTag |
doEndTag, doStartTag, encodeBegin, encodeChildren, encodeEnd, findComponent, getComponentInstance, getComponentType, getCreated, getDoEndValue, getDoStartValue, getFacesContext, getFacetName, getId, getParent, getParentUIComponentTag, getRendererType, isSuppressed, isValueReference, release, setBinding, setId, setPageContext, setParent, setProperties, setRendered, setupResponseWriter |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractUIComponentTag
public AbstractUIComponentTag()
addValueBindingIfNecessary
protected final boolean addValueBindingIfNecessary(UIComponent component,
java.lang.String propName,
java.lang.String value)
- Adds a value binding for the property with name
propName
to the UIComponent component
if and only if
value
is a reference expression.
- Parameters:
component
- The associated UIComponentpropName
- The name of the propertyvalue
- Maybe a reference expression
- Returns:
true
if value
is a reference
expression false
otherwise
setStringProperty
protected final void setStringProperty(UIComponent component,
java.lang.String propName,
java.lang.String value)
- Adds a value binding for the property with name
propName
to the UIComponent component
if and only if
value
is a reference expression otherwise an attribute
with key propName
and value value
.
- Parameters:
component
- The associated UIComponentpropName
- The name of the propertyvalue
- Maybe a reference expression
setBooleanProperty
protected final void setBooleanProperty(UIComponent component,
java.lang.String propName,
java.lang.String value)
- Adds a value binding for the property with name
propName
to the UIComponent component
if and only if
value
is a reference expression otherwise an boolean
attribute with key propName
and value value
.
- Parameters:
component
- The associated UIComponentpropName
- The name of the propertyvalue
- Maybe a reference expression
Copyright © 2006 mindmatters GmbH & Co. KG