Class LabelRenderer

    • Constructor Detail

      • LabelRenderer

        public LabelRenderer()
    • Method Detail

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