• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to retrieve portlet id within a portlet code?

 
Alka Parveen
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

Thanks in advance,
Alka
 
Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper
Posts: 4968
1
Hibernate Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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

Kind regards,

-Cameron McKenzie
 
Alka Parveen
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

Thanks for your help,
Alka
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65120
91
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
zeba, please check your private messages.
 
murali kankanala
Ranch Hand
Posts: 110
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Friends

Can any one help me how to start learning a portal development, for example i want to know how to work on Vignette Portal.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic