JSF-Spring

de.mindmatters.faces.render.html
Class AbstractRendererBase

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

Constructor Summary
AbstractRendererBase()
           
 
Method Summary
protected  boolean getBooleanAttribute(UIComponent component, java.lang.String attributeName)
          Converts an attribute of the given UIComponent component with the name attributeName to a boolean value.
protected  void writeBooleanPassThruAttributes(ResponseWriter writer, UIComponent component)
          Render any boolean "passthru" attributes.
protected  void writePassThruAttributes(ResponseWriter writer, UIComponent component)
          Render any "passthru" attributes, where we simply just output the raw name and value of the attribute.
 
Methods inherited from class javax.faces.render.Renderer
convertClientId, decode, encodeBegin, encodeChildren, encodeEnd, getConvertedValue, getRendersChildren
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractRendererBase

public AbstractRendererBase()
Method Detail

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 component
attributeName - 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 use
component - 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 use
component - The associated component
Throws:
java.io.IOException - if an input/output error occurs

JSF-Spring

Copyright © 2006 mindmatters GmbH & Co. KG