Top Description Fields Constructors Methods
com.sun.faces.renderkit.html_basic

public Class LabelRenderer

extends HtmlBasicInputRenderer
Class Inheritance
Imports
java.io.IOException, java.util.logging.Level, javax.faces.component.NamingContainer, .UIComponent, .UINamingContainer, javax.faces.context.FacesContext, .ResponseWriter, com.sun.faces.renderkit.Attribute, .AttributeManager, .RenderKitUtils, java.util.EnumSet, .Set, javax.faces.component.search.SearchExpressionContext, .SearchExpressionHint

LabelRenderer renders Label element.

.

Field Summary

Modifier and TypeField and Description
private static final Attribute[]
private static final Set<SearchExpressionHint>
private static final String

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
encodeBegin(FacesContext
FacesContext for the request we are processing
context
,
UIComponent
UIComponent to be rendered
component
)

Overrides javax.faces.render.Renderer.encodeBegin.

Render the beginning specified UIComponent to the output stream or writer associated with the response we are creating.

public void
encodeEnd(FacesContext
FacesContext for the response we are creating
context
,
UIComponent
UIComponent to be rendered
component
)

Overrides com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeEnd.

Render the ending of the current state of the specified UIComponent, following the rules described for encodeBegin() to acquire the appropriate value to be rendered.

protected String

Returns:

String clientId of the component represented by the forValue.
getForComponentClientId
(UIComponent
UIComponent that represents the label
component
,
FacesContext
FacesContext for this request
context
,
String
String representing the "id" of the component that this label represents.
forValue
)

Builds and returns the clientId of the component that is represented by the forValue.

Inherited from com.sun.faces.renderkit.html_basic.HtmlBasicInputRenderer:
getConvertedValuegetNonOnChangeBehaviorsgetNonOnClickSelectBehaviorsgetValuesetSubmittedValue

Field Detail

ATTRIBUTESback to summary
private static final Attribute[] ATTRIBUTES
EXPRESSION_HINTSback to summary
private static final Set<SearchExpressionHint> EXPRESSION_HINTS

Hides com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.EXPRESSION_HINTS.

RENDER_END_ELEMENTback to summary
private static final String RENDER_END_ELEMENT

Constructor Detail

LabelRendererback to summary
public LabelRenderer()

Method Detail

encodeBeginback to summary
public void encodeBegin(FacesContext context, UIComponent component) throws IOException

Overrides javax.faces.render.Renderer.encodeBegin.

Doc from javax.faces.render.Renderer.encodeBegin.

Render the beginning specified UIComponent to the output stream or writer associated with the response we are creating. If the conversion attempted in a previous call to getConvertedValue() for this component failed, the state information saved during execution of decode() should be used to reproduce the incorrect input.

Parameters
context:FacesContext

FacesContext for the request we are processing

component:UIComponent

UIComponent to be rendered

Annotations
@Override
Exceptions
IOException:
if an input/output error occurs while rendering
encodeEndback to summary
public void encodeEnd(FacesContext context, UIComponent component) throws IOException

Overrides com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeEnd.

Doc from javax.faces.render.Renderer.encodeEnd.

Render the ending of the current state of the specified UIComponent, following the rules described for encodeBegin() to acquire the appropriate value to be rendered.

Parameters
context:FacesContext

FacesContext for the response we are creating

component:UIComponent

UIComponent to be rendered

Annotations
@Override
Exceptions
IOException:
if an input/output error occurs while rendering
getForComponentClientIdback to summary
protected String getForComponentClientId(UIComponent component, FacesContext context, 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

UIComponent that represents the label

context:FacesContext

FacesContext for this request

forValue:String

String representing the "id" of the component that this label represents.

Returns:String

String clientId of the component represented by the forValue.