disable <p:button/>

UI Components for JSF
Post Reply
tlteoh
Posts: 21
Joined: 24 Oct 2010, 16:33

22 Nov 2011, 10:19

I want to disable certain <p:button /> in javascript. Previously by using primefaces 3.0.M1 i able to disable my button with below code

function disableButton(buttonID) {
jQuery("#" + buttonID).addClass("ui-state-disabled");
document.getElementById(buttonID).disabled = true;
}

but after i upgraded to primefaces 3.0.M4, this javascript cannot use anymore. Can anyone know the problem?

Thanks,
Teoh

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 47 guests