Hey, I am trying to retrieve a portlet id. Its a jsr 168 portlet with vignette portlal. Can anyone please suggest that except using RenderResponse's getNamespace() method, how to do this. Is there any vignette API for this. Please help in this regard.
Are you talking about the name that appears in the portlet.xml file, or the unique id that the portal assigns to a unique user instance of a portlet?
Either way, I'm not sure if you're going to have too much luck, other than with the encodeNamespace.
Maybe you could tell me what you're trying to do. If it's the name in the portlet.xml file, why not just duplicate it as an init-param and read it by the PortletConfig or even the PortletContext, depending upon the scope you're after. I'm trying to imagine what your problem is - I think assigning an initial parameter to the portlet might solve it.
Here's a nice little CBT tutorial on how the various portlet config objects work: Working with PortletConfig and PortletContext Objects with a JSR168 Resource
hey thanks, Actually i am try to read portlet unique id within portlet code. i am using vignette portal. I know that it is possible through JSR 168 API's RenderResponse but i am asking for any other method which can do this. because most of the time i dont have render parameters in my portlet. so if you know any of vignette portal API or any other method then please share.