Hi Sari, You need to create boolen getter /setter in class level .You need to make check teh condition in class based on that you need to make teh varibale true or false .
As pronab has given the code you need to write like belwo . public boolean displayButton{get;set;}
http://www.infallibletechie.com/2013/04/hide-and-show-example-using-apex-in.html
http://www.davehelgerson.com/?p=545
Please let us know if this will help you
If condition is met then it return true otherwise false. If it return true then button will be disable otherwise the button will be enable.
You need to create boolen getter /setter in class level .You need to make check teh condition in class based on that you need to make teh varibale true or false .
As pronab has given the code you need to write like belwo .
public boolean displayButton{get;set;} Let us know if it helps !!
Thanks
Manoj