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

delphi - TJvHidDeviceController "DevicePath" always showing "\" -

web applications - Making Python scripts work on MAMP -

cocoa - Converting NSString to keyCode+modifiers for AXUIElementPostKeyboardEvent -