File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 Murach's Java Servlets and JSP this week in the Servlets 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!
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: How to make commandButton hidden and workable?
 
Similar Threads
How to give a h:inputHidden element an initial value and bind it to a backing bean?
Question on how to fix error on inputHidden field
JS slide
Received xmlhttp result, want to allow user to download - how?
How can I set variable in backing bean directly from jspx page?