Class CommandScriptRenderer


  • public class CommandScriptRenderer
    extends HtmlBasicRenderer
    CommandScriptRenderer is a class that renders the current value of UICommand as a Script that acts like an Ajax Button.
    • Constructor Detail

      • CommandScriptRenderer

        public CommandScriptRenderer()
    • 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
      • getRendersChildren

        public boolean getRendersChildren()
        Description copied from class: Renderer

        Return a flag indicating whether this Renderer is responsible for rendering the children the component it is asked to render. The default implementation returns false.

        Overrides:
        getRendersChildren in class HtmlBasicRenderer
        Returns:
        the current value of the flag