• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to make commandButton hidden and workable?

 
Dmitriy Kastikovich
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!

I want something like inputHidden. I have tried rendered=false and type='hidden' - not the same as inputHidden.

Simply I want to press on visible button OK, run JS function and then from JS click() hidden button.

How to do so?
 
Bauke Scholtz
Ranch Hand
Posts: 2458
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
At end it's all plain HTML whch is generated by JSF. To style HTML elements, you normally use CSS. So also in this case. You can use the CSS properties 'display' or 'visibility' for this.
 
Dmitriy Kastikovich
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks, it works!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic