Thanks Ate, 

I'll take a look at that as well at some point. David's suggestion is
working fine for now.

Btw, you're original post just came rolling in :)

Cheers, Joris. 

-----Original Message-----
From: Ate Douma [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 21, 2007 5:35 PM
To: Jetspeed Users List
Subject: Re: Preferences question

Melchior, Joris wrote:
> I need that to get to the proper node (it's part of the path) as in
the
> example you sent earlier. 
> 
> Thanks again, Joris.
> 
> -----Original Message-----
> From: David Sean Taylor [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, March 21, 2007 11:54 AM
> To: Jetspeed Users List
> Subject: Re: Preferences question
> 
> 
> On Mar 21, 2007, at 8:17 AM, Melchior, Joris wrote:
> 
>> Thanks David,
>>
>> I get that bit except for how I get a handle to the portlet  
>> instance ID
>> from within the portlet itself (in doEdit for example).
>>
> There is no standard way to get the portlet instance ID.
Well, actually there is  :)

But it takes a little coding to get hold of it and requires a
PortletSession.
I wrote a little utility PortletWindowUtils class which is now provided
with the portals-bridges-common-1.0.1.jar.

Javadoc:

http://portals.apache.org/bridges/multiproject/portals-bridges-common/ap
idocs/org/apache/portals/bridges/util/PortletWindowUtils.html#getPortlet
WindowId(javax.portlet.PortletSession)

Source xref:

 
http://portals.apache.org/bridges/multiproject/portals-bridges-common/xr
ef/org/apache/portals/bridges/util/PortletWindowUtils.html

HTH,

Ate
(Note: I already send this reply earlier but it hasn't come through yet,
so trying again using a different provider)


> That said, try this:
> 
> ((ContentFragment)request.getAttribute 
> (PortalReservedParameters.FRAGMENT_ATTRIBUTE)).getId();
> 
> What do you need the unique id for ?
> 
> 
> 
> ---------------------------------------------------------------------
> 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]
> 
> 


---------------------------------------------------------------------
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