Class LabelRenderer


public class LabelRenderer extends HtmlBasicInputRenderer

LabelRenderer renders Label element.

.

  • Constructor Details

    • LabelRenderer

      public LabelRenderer()
  • Method Details

    • encodeBegin

      public void encodeBegin(FacesContext context, UIComponent component) throws IOException
      Description copied from class: Renderer

      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.

      Overrides:
      encodeBegin in class Renderer
      Parameters:
      context - FacesContext for the request we are processing
      component - UIComponent to be rendered
      Throws:
      IOException - if an input/output error occurs while rendering
    • encodeEnd

      public void encodeEnd(FacesContext context, UIComponent component) throws IOException
      Description copied from class: Renderer

      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.

      Overrides:
      encodeEnd in class HtmlBasicRenderer
      Parameters:
      context - FacesContext for the response we are creating
      component - UIComponent to be rendered
      Throws:
      IOException - if an input/output error occurs while rendering
    • getForComponentClientId

      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 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.