I have a menu item that I want to show / hide only if the user has certain roles.
I am using the rendered attribute for this, but I am stuck on something. It works...
rendered="#{loginHandler.hasStaffRole}"
... But it is not...
rendered="#{loginHandler.hasStaffRole or loginHandler.hasInstructorRole or loginHandler.hasVolunteerRole}"
The error I get in Eclipse for one problem:
"cannot apply expression operators to method bindings"
Any idea how I should fix this?
source share