3 Replies Latest reply on Mar 13, 2009 6:30 AM by peris

    Regarding Portal session management

      I get all the user roles in Header.jsp . I would like to get the user specific roles in my own portlet. How can i set the roles in session. I tried using httpsession but , I did not get the vale in my portlet. If you have any idea regarding this please reply me.

        • 1. Re: Regarding Portal session management

          JBoss Portal takes a very literal interpretation of JSR168 when it comes to managing user roles. So, any roles that you want to use from your JAAS security context, you'll have to define (at least a role-name, not necessarily role-link) in your portlet.xml:

          <security-role-ref>
          <role-name>YourRole</role-name>
          </security-role-ref>

          • 2. Re: Regarding Portal session management

            Hi apemberton

            For example in portal.xml

            <display-name>My portlets</display-name>.

            If I minimize the above portlet it shows the name "My portlets".

            But in my dynamic creation portlet i cant set the display name programatically.(No portal.xml for this portlet everything is generated through coding). If I set displayname in dynamic portlet my problem is solved.

            • 3. Re: Regarding Portal session management

              sorry i send wrong info .