[jboss-user] [JBoss Seam] - Re: Seam Security: isUserInRole() expression

jeffconstantin do-not-reply at jboss.com
Mon Apr 16 16:22:47 EDT 2007


>From my experience (and from this posting) this code does not work on the frontend. The documentation is incorrect.
Allows JSF pages to choose to render a control, depending upon the roles available to the current principal. <h:commandButton value="edit" rendered="#{isUserInRole['admin']}"/>.
you have to use (this does works)
rendered="#{s:hasRole('admin')}"

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

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



More information about the jboss-user mailing list