primefaces命令按钮标签更改后点击
答
用布尔值在烘焙豆
在bean尝试
boolean buttonDisabled = false;
.xhtml
<p:commandButton "#{yourBean.buttonDisabled ? 'old label' : 'new label'}" disabled="#{yourBean.buttonDisabled}">
<f:setPropertyActionListener value="true"
target="#{yourBean.buttonDisabled}" />
</p:commandButton>