WebSphere Portal Server - How can a portlet discover its ObjectID?

This is Interesting: Free IT Magazines  
Home > Archive > WebSphere Portal Server > March 2007 > How can a portlet discover its ObjectID?





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author How can a portlet discover its ObjectID?

2007-03-22, 1:30 pm

I'd like for my portlet to get the ObjectID corresponding to itself; I plan on passing this to some StateManager/AccessController APIs to build advanced URLs. Is there a good way to do this? Ideally, I'd like to be able to do this either native on in JS
R-168 mode, although Java standard is the current focus. Thanks in advance.

2007-03-23, 7:28 am

Is this what you're looking for?
http://publib.boulder.ibm.com/infoc...s/wpsobjid.html

2007-03-23, 7:28 am

Thanks for the reply. What I was looking for was something a little more generic, however: this code (I believe) requires the caller to know the unique name of the object (portlet or page) in order to get the corresponding object ID. In my case, the cod
e that needs this object ID is reusable, and cannot directly know the unique name of the portlet. So I was looking for some code that would, e.g., return the ID given a PortletRequest, etc. Perhaps there's an easy way to get the portlet's unique name gi
ven, e.g., the request? From there I could use the code you mentioned.
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2009 webservertalk.com