All Downloads are FREE. Search and download functionalities are using the official Maven repository.

sections.renderers.commandButtonSingleClick.xhtml Maven / Gradle / Ivy

There is a newer version: 1.1.0.6-jre15
Show newest version

    
        
            
                
            
            
                

This renderer for CommandButtons 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