[jboss-user] [JBoss Portal] - Portlet customization with respect to user rloes

georgy do-not-reply at jboss.com
Tue Jun 19 06:38:12 EDT 2007


Hi

I'am trying to customize a portlet with respect to user roles. To do so, i am using the "isUserInRole" method. Here is a sample of my jsp code :

  | <%if(request.isUserInRole("Administrators")){ %>
  |        <a href="<portlet:renderURL .....
  | <%}%>
  | 

I've also tried the "renderRequest" but the result is the same: isUserInRole always returns false, it doesn't matter the role i use to log in.

i am using jboss portal 2.4 with its default configuration.

Do i have to modify the portlet.xml file?

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4055535#4055535

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4055535



More information about the jboss-user mailing list