de.mindmatters.faces.render.html
Class AbstractRendererBase
java.lang.Object
javax.faces.render.Renderer
de.mindmatters.faces.render.html.AbstractRendererBase
- Direct Known Subclasses:
- HtmlFormRenderer
public abstract class AbstractRendererBase
- extends Renderer
AbstractRendererBase is a convenience base class that
implements helper methods needed for any concrete renderer.
- Author:
- Andreas Kuhrwahl
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractRendererBase
public AbstractRendererBase()
getBooleanAttribute
protected final boolean getBooleanAttribute(UIComponent component,
java.lang.String attributeName)
- Converts an attribute of the given UIComponent
component
with the name attributeName
to a boolean value.
- Parameters:
component
- The associated componentattributeName
- The name of the attribute to convert
- Returns:
true
if the attribute exists and equals "true"
false
otherwise
writeBooleanPassThruAttributes
protected final void writeBooleanPassThruAttributes(ResponseWriter writer,
UIComponent component)
throws java.io.IOException
- Render any boolean "passthru" attributes.
- Parameters:
writer
- The Responsewriter to usecomponent
- The associated component
- Throws:
java.io.IOException
- if an input/output error occurs- See Also:
writePassThruAttributes(ResponseWriter,
UIComponent)
writePassThruAttributes
protected final void writePassThruAttributes(ResponseWriter writer,
UIComponent component)
throws java.io.IOException
- Render any "passthru" attributes, where we simply just output the raw
name and value of the attribute. This method is aware of the set of HTML4
attributes that fall into this bucket. Examples are all the javascript
attributes, alt, rows, cols, etc.
- Parameters:
writer
- The Responsewriter to usecomponent
- The associated component
- Throws:
java.io.IOException
- if an input/output error occurs
Copyright © 2006 mindmatters GmbH & Co. KG