0 Replies Latest reply on Jun 25, 2007 6:39 PM by ronan o connell

    Restricting User View based on role

    ronan o connell Newbie

      hi,

      i am looking to build a webapp whereby upon successful login, the user is displayed a main menu page.
      The complete menu will consist of say 10 links to various sections, however not all users will have visibility to the complete menu.
      Say users with role = 'admin' will see all, but those with role = 'student' will only see 7 of them.
      What is the best way to check within my JSF page & display the link if role of user permits them visibility.
      Of course, if the user attempts to directly access the url of one of the links he/she should not have visibility of they will be prompted with login & subsequently refused access.

      any thoughts as to the best possible solution for this would be greatly appreciated.

      thanks