| Author |
How to retrieve portlet id within a portlet code?
|
Alka Parveen
Greenhorn
Joined: Oct 29, 2007
Posts: 5
|
|
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
Joined: Aug 26, 2006
Posts: 4967
|
|
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
|
Author of Hibernate Made Easy, What is WebSphere???, JSF 2.0 Made Easy and the SCJA Certification Guides
|
 |
Alka Parveen
Greenhorn
Joined: Oct 29, 2007
Posts: 5
|
|
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
Joined: Jan 10, 2002
Posts: 56200
|
|
|
zeba, please check your private messages.
|
[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
|
 |
murali kankanala
Ranch Hand
Joined: Nov 15, 2004
Posts: 110
|
|
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.
|
 |
 |
|
|
subject: How to retrieve portlet id within a portlet code?
|
|
|