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:
For example in portal.xml
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.
sorry i send wrong info .