Wow.. first off, you are a money dude for figuring that out.

However, the processes I need to run (that require a unique portlet
instance ID) are fairly resource-intensive and should only be run once
upon portlet initialization.  And, sadly, the init() method doesn't have
access to any type of request object from which to pull the fragment id.

Is there a way to get a portlet instance's unique ID without using the
request object (namely, from the portlet init() method)?

-Ben


> Wiadomosc od [EMAIL PROTECTED] 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
>
> [EMAIL PROTECTED]
> tel.: +48 502 408 444
> gg: 2540358
> skype: jacek_wislicki
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to