Whoops... It's setVisible, not setVisibility for buttons. Also, if you're getting undefined errors, check the rendered property. If it's false, that's probably the problem. When are you trying to show the button, anyway?