com.sun.faces.renderkit.html_basic
Class LabelRenderer

java.lang.Object
  extended by javax.faces.render.Renderer
      extended by com.sun.faces.renderkit.html_basic.HtmlBasicRenderer
          extended by com.sun.faces.renderkit.html_basic.HtmlBasicInputRenderer
              extended by com.sun.faces.renderkit.html_basic.LabelRenderer

public class LabelRenderer
extends HtmlBasicInputRenderer

LabelRenderer renders Label element.

.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.sun.faces.renderkit.html_basic.HtmlBasicRenderer
HtmlBasicRenderer.Param
 
Field Summary
 
Fields inherited from class com.sun.faces.renderkit.html_basic.HtmlBasicRenderer
logger
 
Constructor Summary
LabelRenderer()
           
 
Method Summary
 void encodeBegin(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component)
           
 void encodeEnd(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component)
           
protected  java.lang.String getForComponentClientId(javax.faces.component.UIComponent component, javax.faces.context.FacesContext context, java.lang.String forValue)
          Builds and returns the clientId of the component that is represented by the forValue.
 
Methods inherited from class com.sun.faces.renderkit.html_basic.HtmlBasicInputRenderer
getConvertedValue, getValue, setSubmittedValue
 
Methods inherited from class com.sun.faces.renderkit.html_basic.HtmlBasicRenderer
addGenericErrorMessage, augmentIdReference, convertClientId, decode, encodeRecursive, getChildren, getCurrentValue, getEndTextToRender, getFacet, getForComponent, getFormattedValue, getMessageIter, getParamList, getRendersChildren, shouldWriteIdAttribute, writeIdAttributeIfNecessary
 
Methods inherited from class javax.faces.render.Renderer
encodeChildren
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LabelRenderer

public LabelRenderer()
Method Detail

encodeBegin

public void encodeBegin(javax.faces.context.FacesContext context,
                        javax.faces.component.UIComponent component)
                 throws java.io.IOException
Overrides:
encodeBegin in class javax.faces.render.Renderer
Throws:
java.io.IOException

encodeEnd

public void encodeEnd(javax.faces.context.FacesContext context,
                      javax.faces.component.UIComponent component)
               throws java.io.IOException
Overrides:
encodeEnd in class HtmlBasicRenderer
Throws:
java.io.IOException

getForComponentClientId

protected java.lang.String getForComponentClientId(javax.faces.component.UIComponent component,
                                                   javax.faces.context.FacesContext context,
                                                   java.lang.String forValue)
Builds and returns the clientId of the component that is represented by the forValue. Since the component has not been created yet, invoking getClientId(context) is not possible.

Parameters:
component - UIComponent that represents the label
context - FacesContext for this request
forValue - String representing the "id" of the component that this label represents.
Returns:
String clientId of the component represented by the forValue.


Copyright ? 2002-2006 Sun Microsystems, Inc. All Rights Reserved.