portals-jetspeed-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jacek Wiƛlicki <jacek.wisli...@gmail.com>
Subject Re: Retrieving a portlet's unique instance ID..
Date Sun, 22 Jan 2006 02:24:02 GMT
Wiadomosc od jetspeed@theunderground.net z 2006-01-22 02:26 brzmiala:

> All,
> 
> Okay, so I have a portal that will have multiple instances of my content
> display portlet.  But each instance of my portlet needs to have a way of
> retrieving some ID that differentiates it from all the other, identical
> content display portlets.  This ID should not only be unique to this
> portlet instance, but also persistant across server restarts.
> 
> Is this possible in Jetspeed 2?
I've done a similar task yesterday :) In order to get fragment's 
identifier (like the one in PSML file) use something like this:
((ContentFragment)request.getAttribute(PortalReservedParameters.FRAGMENT_ATTRIBUTE)).getId();
where request is RenderRequest.

-- 
pozdrawiam,
     Jacek Wislicki

jacek.wislicki@gmail.com
tel.: +48 502 408 444
gg: 2540358
skype: jacek_wislicki

---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org


Mime
View raw message