Class CommandButtonSingleClickRenderer

java.lang.Object
javax.faces.render.Renderer
org.primefaces.renderkit.CoreRenderer
org.primefaces.component.commandbutton.CommandButtonRenderer
org.primefaces.extensions.renderer.CommandButtonSingleClickRenderer

@Deprecated public class CommandButtonSingleClickRenderer extends org.primefaces.component.commandbutton.CommandButtonRenderer
Deprecated.
PF12 has a disableOnAjax attribute
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
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    encodeMarkup(javax.faces.context.FacesContext context, org.primefaces.component.commandbutton.CommandButton button)
    Deprecated.
     
    protected String
    getAttributeValue(javax.faces.context.FacesContext context, org.primefaces.component.commandbutton.CommandButton button, String attribute)
    Deprecated.
     
    protected String
    getToggleJS(String widgetVar, boolean enabled)
    Deprecated.
     
    protected boolean
    isConfirmation(org.primefaces.component.commandbutton.CommandButton button)
    Deprecated.
    Check for ConfirmDialog or ConfirmPopup buttons.
    protected boolean
    isEligible(org.primefaces.component.commandbutton.CommandButton button)
    Deprecated.
     
    protected String
    prefix(String base, String prefix)
    Deprecated.
     

    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, endsWithLenghtUnit, getEventBehaviors, getHighlighter, getResourceRequestPath, getResourceURL, getStyleBuilder, getStyleClassBuilder, getWidgetBuilder, isGrouped, isValueBlank, preConfiguredAjaxRequestBuilder, preConfiguredAjaxRequestBuilder, renderChild, renderChildren, renderDomEvent, renderDomEvents, renderDummyMarkup, renderDynamicPassThruAttributes, renderHiddenInput, renderOnchange, renderOnclick, renderPassThruAttributes, renderPassThruAttributes, renderPassThruAttributes, renderValidationMetadata, shouldRenderAttribute, shouldWriteId

    Methods inherited from class javax.faces.render.Renderer

    convertClientId, encodeBegin, encodeChildren, getConvertedValue, getRendersChildren

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • CommandButtonSingleClickRenderer

      public CommandButtonSingleClickRenderer()
      Deprecated.
  • Method Details

    • encodeMarkup

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

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

      protected boolean isConfirmation(org.primefaces.component.commandbutton.CommandButton button)
      Deprecated.
      Check for ConfirmDialog or ConfirmPopup buttons.
      Parameters:
      button - the button to inspect
      Returns:
      true if confirmation button
    • getToggleJS

      protected String getToggleJS(String widgetVar, boolean enabled)
      Deprecated.
    • getAttributeValue

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

      protected String prefix(String base, String prefix)
      Deprecated.