今日、私は一日中、<p:commandButton>
.
h:commandButton の p:commandButton を変更した後、すべてが正常に機能しました。これは、commandButton を宣言した方法です。
<p:commandButton id="b1" style="height: 30px; width: 30px;" value="a"
action="#{turnoController.createTurno('a')}"
onclick="document.getElementById(this.id).disabled=true;"/>
このコマンド ボタンを使用すると更新されますが、無効にする方法がわかりません。
<h:commandButton id="b1" style="height: 30px; width: 30px;" value="a"
action="#{turnoController.createTurno('a')}"/>
p:commandButton がページの値の「更新」と互換性がないのはなぜですか?
私がしたいのは、クリック後にボタンを無効にするだけでなく、すべての値を更新することです...
どうすればxhtml+jsfで作ることができますか???