public abstract class AbstractFacesTag
extends javax.faces.webapp.UIComponentTag
Abstract base class for custom component tags for the Struts-Faces Integration Library.
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
bundle
The servlet context attribute under which our
MessageResources bundle is stored. |
protected java.lang.String |
style
The CSS style(s) used to render this component.
|
protected java.lang.String |
styleClass
The CSS style class(es) used to render this component.
|
protected java.lang.String |
value
The literal value to be rendered.
|
bodyContent, pageContext, UNIQUE_ID_PREFIX| Constructor and Description |
|---|
AbstractFacesTag() |
| Modifier and Type | Method and Description |
|---|---|
abstract java.lang.String |
getComponentType()
Return the component type of the component to be created for
this tag.
|
abstract java.lang.String |
getRendererType()
Return the
rendererType to be used for rendering
our component. |
void |
release()
Release any variables allocated during use of this tag instance.
|
protected void |
setBooleanAttribute(javax.faces.component.UIComponent component,
java.lang.String name,
java.lang.String value)
If the specified attribute value is not
null
use it to either store a value binding expression for the
specified attribute name, or store it as the literal value
of the attribute. |
void |
setBundle(java.lang.String bundle) |
protected void |
setIntegerAttribute(javax.faces.component.UIComponent component,
java.lang.String name,
java.lang.String value)
If the specified attribute value is not
null
use it to either store a value binding expression for the
specified attribute name, or store it as the literal value
of the attribute. |
protected void |
setProperties(javax.faces.component.UIComponent component)
Override attributes set on this tag instance.
|
protected void |
setStringAttribute(javax.faces.component.UIComponent component,
java.lang.String name,
java.lang.String value)
If the specified attribute value is not
null
use it to either store a value binding expression for the
specified attribute name, or store it as the literal value
of the attribute. |
void |
setStyle(java.lang.String style) |
void |
setStyleClass(java.lang.String styleClass) |
void |
setValue(java.lang.String value) |
createComponent, getParentUIComponentTag, hasBinding, isSuppressed, isValueReference, setBinding, setRenderedaddChild, addFacet, addVerbatimAfterComponent, addVerbatimBeforeComponent, createVerbatimComponent, createVerbatimComponentFromBodyContent, doAfterBody, doEndTag, doInitBody, doStartTag, encodeBegin, encodeChildren, encodeEnd, findComponent, getBodyContent, getComponentInstance, getCreated, getCreatedComponents, getDoAfterBodyValue, getDoEndValue, getDoStartValue, getFacesContext, getFacesJspId, getFacetName, getId, getIndexOfNextChildTag, getJspId, getParent, getParentUIComponentClassicTagBase, getPreviousOut, setBodyContent, setId, setJspId, setPageContext, setParent, setupResponseWriterprotected java.lang.String bundle
The servlet context attribute under which our
MessageResources bundle is stored.
protected java.lang.String style
The CSS style(s) used to render this component.
protected java.lang.String styleClass
The CSS style class(es) used to render this component.
protected java.lang.String value
The literal value to be rendered.
public void setBundle(java.lang.String bundle)
public void setStyle(java.lang.String style)
public void setStyleClass(java.lang.String styleClass)
public void setValue(java.lang.String value)
public abstract java.lang.String getComponentType()
Return the component type of the component to be created for this tag.
getComponentType in class javax.faces.webapp.UIComponentTagBasepublic abstract java.lang.String getRendererType()
Return the rendererType to be used for rendering
our component.
getRendererType in class javax.faces.webapp.UIComponentTagBasepublic void release()
Release any variables allocated during use of this tag instance.
release in interface javax.servlet.jsp.tagext.Tagrelease in class javax.faces.webapp.UIComponentTagprotected void setProperties(javax.faces.component.UIComponent component)
Override attributes set on this tag instance.
setProperties in class javax.faces.webapp.UIComponentTagcomponent - Component whose attributes should be overriddenprotected void setBooleanAttribute(javax.faces.component.UIComponent component,
java.lang.String name,
java.lang.String value)
If the specified attribute value is not null
use it to either store a value binding expression for the
specified attribute name, or store it as the literal value
of the attribute.
component - UIComponent whose attribute
is to be setname - Attribute namevalue - Attribute value (or null)java.lang.NumberFormatException - if the value does not
contain a parsable integerReferenceSyntaxException - if the expression has
invalid syntaxprotected void setIntegerAttribute(javax.faces.component.UIComponent component,
java.lang.String name,
java.lang.String value)
If the specified attribute value is not null
use it to either store a value binding expression for the
specified attribute name, or store it as the literal value
of the attribute.
component - UIComponent whose attribute
is to be setname - Attribute namevalue - Attribute value (or null)java.lang.NumberFormatException - if the value does not
contain a parsable integerReferenceSyntaxException - if the expression has
invalid syntaxprotected void setStringAttribute(javax.faces.component.UIComponent component,
java.lang.String name,
java.lang.String value)
If the specified attribute value is not null
use it to either store a value binding expression for the
specified attribute name, or store it as the literal value
of the attribute.
component - UIComponent whose attribute
is to be setname - Attribute namevalue - Attribute value (or null)ReferenceSyntaxException - if the expression has
invalid syntaxCopyright © 2000–2025 Apache Software Foundation. All rights reserved.