• Post Reply Bookmark Topic Watch Topic
  • New Topic

JSF security question  RSS feed

 
Luke Murphy
Ranch Hand
Posts: 300
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Suppose I have a view and I wish to only display some of the components based on the role / group of the user?
What is smartest way to do this using JSF?
Thanks.
 
Wouter Oet
Bartender
Posts: 2700
IntelliJ IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can use the rendered attribute on the components to render them based on roles/groups.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!