Hy, > -----Urspr�ngliche Nachricht----- > Von: David Sean Taylor [mailto:[EMAIL PROTECTED] > Gesendet: Mittwoch, 2. Juni 2004 00:49 > An: Jetspeed Users List > Betreff: Re: Portlet search engine: how to find a working URL to a > portlet > > > > On Jun 1, 2004, at 6:32 AM, Sprang, Henning (Firma CS) wrote: > [...] > > Is there any "always-working" way to construct an URL to a Portlet > > when i have the full path to it in the mentioned > PsmlProtlets and/or > > PortletSet tree, or even easiert with just knowing it's unique id? > > > Do you want to show the portlet standalone (without a page) or within > the context of a page? > Look at JetspeedLink class. > You can create a link to any portlet in the system using a > JetspeedLink > by adding [user/role/group], page, portlet location on page >
Either of one would be good, having the portlet in context of a page would be best. Just after researching for a week and writing my question to the list i found JetspeedLink, too. I was a somehow glad ( of not having wasted a week for searching something that is already there fully functional) that it did not work. We make extensive use of Profiles based on groups, and links generated with JetspeedLink do lead somewhere some levels higher in the Psml Hierarchy "next" to the portlet i am looking for, but they don't lead reliably to the portlet i am really looking for. But finally, just after all that, i found some rule that seems to generate reliable links: When having found a way to my Portlet through the PSML-hierarchy, starting with the USER-ROOT profile in rundata, I take the value of getPath() from the second PSMLPortlet AFTER USER-ROOT, then adding "/js_pane/" to it, then adding the getId() value of each following PsmlPortlet/Reference including the getId() of PSMLEntry at the end, separated by commas. This worked now for each test i did, even if i cannot really say why and how, because i wasn't involved in developing the group and portlet structure we use in our portal, i only know that we use it more extensively as it is normally possible with Jetspeed 1, and we had patch some Jetspeed classes to get all that going. Starting with USER-ROOT as welll as starting with the first profile after user root dis not work. One thing that is not really nice for now is that i only reach the portlet now by going through group profiles, while going through a user profile would be better, but until now i failed creating reliable links based on user profiles (the links generated by JetspeedLink are based on user profiles, too, there seems to be some error i cannot see for now). Henning --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
