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
Register / Login
JavaRanch » Java Forums » Java » JSF
Reply 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: 22
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.


Code depot of a Java EE / JSF developer | JSF / Eclipse / Tomcat kickoff tutorial | DAO kickoff tutorial | I ♥ Unicode
Dmitriy Kastikovich
Greenhorn

Joined: Jun 29, 2008
Posts: 22
thanks, it works!
 
I agree. Here's the link: jrebel
 
subject: How to make commandButton hidden and workable?
 
Similar Threads
Question on how to fix error on inputHidden field
How can I set variable in backing bean directly from jspx page?
JS slide
Received xmlhttp result, want to allow user to download - how?
How to give a h:inputHidden element an initial value and bind it to a backing bean?