[jboss-user] [JBoss Seam] - rendering of UI component based on identity roles

vlaugier do-not-reply at jboss.com
Wed Sep 26 05:53:51 EDT 2007


Hello again,

I want to apply rendering rules to UI components based on the identity roles ? 

for example 
only render a UI component if the user has role A
only render a UI component if the user has role A or role B
only render a UI component if the user has role A and role B

I have tried the following 

  | rendered="#{authenticator.identity.hasRole('admin')}"
  | 

but I get this error when going to the page

/clientList.xhtml @44,175 rendered="#{authenticator.identity.hasRole('admin')}" Error Parsing: #{authenticator.identity.hasRole('admin')}

is there someting to do with the scope of the authenticator ?

thank you

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

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



More information about the jboss-user mailing list