Bug: p:CommandButton Programmatic Method setDisabled

UI Components for JSF
Post Reply
Chris55
Posts: 46
Joined: 09 Jan 2010, 18:56

02 Nov 2010, 17:00

Hi,

FYI... The p:commandButton programmatic method setDisabled(boolean) does not work (and, yes, I bind the component to an instance of org.primefaces.component.commandbutton.CommandButton in my backing bean). Now if I expose a backing bean boolean property and set it as follows:

Code: Select all

<p:commandButton disabled="#{BEAN.disable_CmdBtn}" actionListener="#{BEAN.doSomething}" value="Next &raquo;" />
It works fine. So is this a known issue with the p:CommandButton or should I submit a ticket?
Thanks,

Chris

Stack
Mojarra 2.0.3
PF 2.2.RC1
GlassFish 3.0.1
JPA 2/Oracle 11g
Netbeans 6.9.1

SanKap
Posts: 15
Joined: 10 Sep 2013, 17:21

25 Sep 2013, 10:43

Code: Select all

commandButton.setDisabled(true);
RequestContext.getCurrentInstance().update(commandButton.getId());
primefaces 3.5 / jsf 2 / jboss AS 7.1

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: Google [Bot] and 46 guests