On one of my pages I use p:commandButton, which can be disabled according to backing bean's property. Label on this button (it's "value") is changing according to it too.
The code for this button is the following:
Code: Select all
<p:commandButton value="#{statusBean.isFree ? 'Submit' : 'Busy'}" ajax="false" actionListener="#{listenerBean.handleButton}" disabled="#{!statusBean.isFree}"/>
This button can be re-enabled only by getting to this page again, but not by refreshing it, and it's the problem.
I use primefaces-3.0.M2-SNAPSHOT and Jetty.