File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 Murach's Java Servlets and JSP this week in the Servlets 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)
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: How to call isUserInRole() within rendered property?
 
Similar Threads
AJAX based form submission with JMaki/JSF..
dataTable problem
rich:modalPanel display problem
How get all User's roles in JSP/Servlet?
can anybody help ??