This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes JSF and the fly likes How to call isUserInRole() within rendered property? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "How to call isUserInRole() within rendered property?" Watch "How to call isUserInRole() within rendered property?" New topic
Author

How to call isUserInRole() within rendered property?

Hussein Baghdadi
clojure forum advocate
Bartender

Joined: Nov 08, 2003
Posts: 3476

Hi.
I want to render a command button only if the user is in role "SALES"
<h:commandButton rendered="" />
How to call something like isUserInRole() within rendered property?
Any better solution?
Thanks.
Richard Green
Ranch Hand

Joined: Aug 25, 2005
Posts: 536


MCSD, SCJP, SCWCD, SCBCD, SCJD (in progress - URLybird 1.2.1)
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: How to call isUserInRole() within rendered property?
 
Similar Threads
How get all User's roles in JSP/Servlet?
AJAX based form submission with JMaki/JSF..
dataTable problem
rich:modalPanel display problem
can anybody help ??