title: hiding and showing commandButton in jsf
body: <p>I am new to JSF(PrimeFaces).</p>
  
  <p>I have two <strong><em>commandButtons</em></strong> Do and Undo. I want only one button to be visible at one time.</p>
  
  <p>like, When I click Do button, onclicking Do button should hide(performing its action simultaneously) and Undo button should be visible 
  and when i click Undo button onclicking it should hide and Do button should come back to active </p>
  
  <p>I tried using
  enable() and disable() methods but were of no use.
   Can I get some help in achieving this. any predefined methods available? </p>
  
  <p>Heard <em>rendered</em> attribute will help but couldnt understand what exactly will the attribute do .
  Can someone explain pls </p>