com.sun.faces.renderkit.html_basic
Class LabelRenderer
java.lang.Object
javax.faces.render.Renderer
com.sun.faces.renderkit.html_basic.HtmlBasicRenderer
com.sun.faces.renderkit.html_basic.HtmlBasicInputRenderer
com.sun.faces.renderkit.html_basic.LabelRenderer
public class LabelRenderer
- extends HtmlBasicInputRenderer
LabelRenderer renders Label element.
.
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.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 |
LabelRenderer
public LabelRenderer()
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 labelcontext
- FacesContext for this requestforValue
- 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.