My code:
The 's Client Side API Widget:
PrimeFaces.widget.CommandButton
Method Params Return Type Description
disable()
enable()
So you can just use like this: