sections.renderers.commandButtonSingleClick.xhtml Maven / Gradle / Ivy
This renderer for CommandButton
s will disable the button while an Ajax action is being processed.
To enable this renderer, in the faces-config.xml
, in the <render-kit>...</render-kit>
section, add:
<renderer>
<component-family>org.primefaces.component</component-family>
<renderer-type>org.primefaces.component.CommandButtonRenderer</renderer-type>
<renderer-class>org.primefaces.extensions.renderer.CommandButtonSingleClickRenderer</renderer-class>
</renderer>
Demo:
Press to render button B:
Press to render button A:
© 2015 - 2024 Weber Informatics LLC | Privacy Policy