Class CommandButtonSingleClickRenderer
- java.lang.Object
-
- javax.faces.render.Renderer
-
- org.primefaces.renderkit.CoreRenderer
-
- org.primefaces.component.commandbutton.CommandButtonRenderer
-
- org.primefaces.extensions.renderer.CommandButtonSingleClickRenderer
-
public class CommandButtonSingleClickRenderer extends org.primefaces.component.commandbutton.CommandButtonRendererCommandButtonrenderer disabling the button while action is processed for buttons that are using Ajax.- Since:
- 8.0
- Author:
- Jasper de Vries <jepsar@gmail.com>
-
-
Constructor Summary
Constructors Constructor Description CommandButtonSingleClickRenderer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidencodeMarkup(javax.faces.context.FacesContext context, org.primefaces.component.commandbutton.CommandButton button)protected StringgetAttributeValue(javax.faces.context.FacesContext context, org.primefaces.component.commandbutton.CommandButton button, String attribute)protected StringgetToggleJS(String widgetVar, boolean enabled)protected booleanisConfirmation(org.primefaces.component.commandbutton.CommandButton button)protected booleanisEligible(org.primefaces.component.commandbutton.CommandButton button)protected Stringprefix(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
-
-
-
-
Method Detail
-
encodeMarkup
protected void encodeMarkup(javax.faces.context.FacesContext context, org.primefaces.component.commandbutton.CommandButton button) throws IOException- Overrides:
encodeMarkupin classorg.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)
-
getAttributeValue
protected String getAttributeValue(javax.faces.context.FacesContext context, org.primefaces.component.commandbutton.CommandButton button, String attribute)
-
-