Class CommandButtonSingleClickRenderer


  • public class CommandButtonSingleClickRenderer
    extends org.primefaces.component.commandbutton.CommandButtonRenderer
    CommandButton renderer disabling the button while action is processed for buttons that are using Ajax.
    Since:
    8.0
    Author:
    Jasper de Vries <jepsar@gmail.com>
    • Field Summary

      • Fields inherited from class javax.faces.render.Renderer

        PASSTHROUGH_RENDERER_LOCALNAME_KEY
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void encodeMarkup​(javax.faces.context.FacesContext context, org.primefaces.component.commandbutton.CommandButton button)  
      protected String getAttributeValue​(javax.faces.context.FacesContext context, org.primefaces.component.commandbutton.CommandButton button, String attribute)  
      protected String getToggleJS​(String widgetVar, boolean enabled)  
      protected boolean isConfirmation​(org.primefaces.component.commandbutton.CommandButton button)  
      protected boolean isEligible​(org.primefaces.component.commandbutton.CommandButton button)  
      protected String prefix​(String base, String prefix)  
      • Methods inherited from class org.primefaces.component.commandbutton.CommandButtonRenderer

        buildRequest, decode, encodeEnd, encodeScript
      • Methods inherited from class org.primefaces.renderkit.CoreRenderer

        buildAjaxRequest, buildAjaxRequest, buildAjaxRequest, buildDomEvent, buildNonAjaxRequest, buildNonAjaxRequest, decodeBehaviors, encodeClientBehaviors, escapeText, getEventBehaviors, getHighlighter, getResourceRequestPath, getResourceURL, getWidgetBuilder, isGrouped, isValueBlank, preConfiguredAjaxRequestBuilder, preConfiguredAjaxRequestBuilder, renderChild, renderChildren, renderDomEvent, renderDomEvents, renderDummyMarkup, renderDynamicPassThruAttributes, renderOnchange, renderOnclick, renderPassThruAttributes, renderPassThruAttributes, renderValidationMetadata, shouldRenderAttribute, shouldWriteId
      • Methods inherited from class javax.faces.render.Renderer

        convertClientId, encodeBegin, encodeChildren, getConvertedValue, getRendersChildren
    • Constructor Detail

      • CommandButtonSingleClickRenderer

        public CommandButtonSingleClickRenderer()
    • Method Detail

      • encodeMarkup

        protected void encodeMarkup​(javax.faces.context.FacesContext context,
                                    org.primefaces.component.commandbutton.CommandButton button)
                             throws IOException
        Overrides:
        encodeMarkup in class org.primefaces.component.commandbutton.CommandButtonRenderer
        Throws:
        IOException
      • isEligible

        protected boolean isEligible​(org.primefaces.component.commandbutton.CommandButton button)
      • isConfirmation

        protected boolean isConfirmation​(org.primefaces.component.commandbutton.CommandButton button)
      • getToggleJS

        protected String getToggleJS​(String widgetVar,
                                     boolean enabled)
      • getAttributeValue

        protected String getAttributeValue​(javax.faces.context.FacesContext context,
                                           org.primefaces.component.commandbutton.CommandButton button,
                                           String attribute)