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.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>
-
-
Constructor Summary
Constructors Constructor Description CommandButtonSingleClickRenderer()
-
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
-
-
-
-
Method Detail
-
encodeMarkup
protected void encodeMarkup(javax.faces.context.FacesContext context, org.primefaces.component.commandbutton.CommandButton button) throws IOException
- Overrides:
encodeMarkup
in 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)
-
-