This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara 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


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
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!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to make commandButton hidden and workable?