Can you use a function inside of the rendered attribure?
Rendered takes a true/false value. What I'm trying to do is compare to backing bean values to determine if link should be displayed. Something like this:
The above doesn't work. What I have found is that you can set rendered to a backing bean value (True or False), but I haven't found anything on a function that results in a true or false.
Can you set a function to a rendered attribute? Any suggestions would be appreciated
Bauke Scholtz
Ranch Hand
Joined: Oct 08, 2006
Posts: 2458
posted
0
You can use conditional expressions in EL. Maybe you just did it the wrong way. You didn't give enough information to give you the right answer. If you for example need to compare some value with a String, then you can do it as follows: