JSF-Spring

de.mindmatters.faces.taglib.jsp
Class AbstractUIComponentTag

java.lang.Object
  extended by javax.faces.webapp.UIComponentTag
      extended by 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

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
AbstractUIComponentTag()
           
 
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
 

Constructor Detail

AbstractUIComponentTag

public AbstractUIComponentTag()
Method Detail

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 UIComponent
propName - The name of the property
value - 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 UIComponent
propName - The name of the property
value - 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 UIComponent
propName - The name of the property
value - Maybe a reference expression

JSF-Spring

Copyright © 2006 mindmatters GmbH & Co. KG