문제

how can I disable a commandbutton (ajaxbutton) when the user clicks on it?

i tried it with:

onclick="javascript:this.disabled='true';"

and

onclick="document.getElementById('buttonid').disabled='true'"

but nothing works?

도움이 되었습니까?

해결책

For your specific problem I think you just need to remove the quotes around 'true'. But also look at this link How can I disable an h:commandButton without preventing the action and actionListener from being called?

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top