I am writing an application using JSF 2.0, java ee and glassfish.
My user interface is simple xhtml containing jsf.
I want my user to login and depending their right have different element displayed on the same pages.
is it possible using jaas ?
Thanks in advance
loic
If you don’t want to write framework type code to do this “behind the scenes” you could bind the rendered attribute of the component to a method which checks the user’s access rights e.g.
and then refer to it in the ‘rendered’ attribute of your JSF-tags e.g.
You can wrap multiple components using panels e.g.