This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes JSF and the fly likes How to make commandButton hidden and workable? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » JSF
Bookmark "How to make commandButton hidden and workable?" Watch "How to make commandButton hidden and workable?" New topic
Author

How to make commandButton hidden and workable?

Dmitriy Kastikovich
Greenhorn

Joined: Jun 29, 2008
Posts: 23
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

Joined: Oct 08, 2006
Posts: 2458
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

Joined: Jun 29, 2008
Posts: 23
thanks, it works!
 
wood burning stoves
 
subject: How to make commandButton hidden and workable?