You can call JavaScript function to change button color
<p:commandButton value="click" id="btn1" actionListener="#{something}" preocess="@this" oncomplete="changeColor()" />
<script>
function changeColor(){
document.getElementById('btn1').style.background='red';
}
</script>
source
to share