posted 9 years ago
Are you looking to make a text element selectively visible?
You can do that in several ways. You can use the "rendered" attribute and reference a boolean property on a backing bean. Or for something more client-side dynamic you can use CSS styles and flip them to visible/invisible via JavaScript.
Incidentally, the "type=" attribute on an inputText control is a step backwards. JSF abstracted out that functionality in the core tags, which is which instead of a one-tag-fits all like in the original HTML, you have JSF inputText, inputHidden and commandButton controls.
The secret of how to be miserable is to constantly expect things are going to happen the way that they are "supposed" to happen.
You can have faith, which carries the understanding that you may be disappointed. Then there's being a willfully-blind idiot, which virtually guarantees it.