JSF expression language (EL) question -


i have menu item want show/hide if user has roles.

i'm using rendered attribute this, i'm stuck on something. works ...

rendered="#{loginhandler.hasstaffrole}" 

... not ...

rendered="#{loginhandler.hasstaffrole or loginhandler.hasinstructorrole or loginhandler.hasvolunteerrole}" 

the error in eclipse problem 1 is:

"cannot apply expression operators method bindings"

any idea how should fix this?

answering own question. problem loginhandler.hasstaffrole() method needed worded loginhandler.ishasstaffrole() in order recognized property. (in end changed .isuserhasstaffrole.)

thanks.


Comments

Popular posts from this blog

java - netbeans "Please wait - classpath scanning in progress..." -

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

openxml - Programmatically format a date in an excel sheet using Office Open Xml SDK -