I have a JSF page with 2 outputText fields. I want the second one to appear only if the first has a certain value.
It should be something like:
But I don't know how to get a value of a JSF field, or a value of a java bean member in a JSP tag (that is not bind to a field in the page), like the example above.
That will make the JSP look up the JSF managed bean object and give you direct access to it. You'd need to set the class and scope parameters to match what you have in your faces-config file. Or, you can even do it the messier way by writing a scriptlet that does the equivalent of the above.