[RESOLVIDO] Primefaces - desabilitar e renomear p:commandbutton após clicado

Galera,

Resolvido o problema de mudar o value do botão. Como poderão ver no script abaixo, obj.textContent é a solução. Testado e aprovado. Obrigado novamente a todos por compartilhar o conhecimento na busca da solução! :slight_smile:

[code] <script>
function changeValue(obj, msg, disable) {
obj = document.getElementById(obj);
obj.textContent = msg;

            if(disable){  
                obj.setAttribute("disabled","disabled");   
                obj.setAttribute("aria-disabled",disable);   
            }else{  
                obj.removeAttribute("disabled");   
                obj.setAttribute("aria-disabled",disable);   
            }  
        }  
    &lt;/script&gt;    

[/code]