Button remains disabled after page refresh

UI Components for JSF
Post Reply
DyrtDancer
Posts: 1
Joined: 31 Aug 2011, 09:05

31 Aug 2011, 09:20

Hi.
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}"/>
Initially statusBean.isFree is "true". If it becomes "false" button's label changes to "Busy" and button gets disabled. But if statusBean.isFree becomes "true" again after that, I refresh page with F5 key and see: button's label is "Submit", but it's still disabled.
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.

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 36 guests