Hi Mike,

The way I would go about achieving this is by using named anchors in
your decorators.  It would go something like this:

Add code to you portlet decorator(s) that defines a named anchor that
matches the fragment id:

<a name="${f.id}"></a>

That's the easier part, the harder part is that you will probably need
create you own version of
org.apache.jetspeed.container.url.impl.JetspeedPortletURL and
org.apache.jetspeed.container.url.impl.PortletURLFactoryImpl to generate
the URL with the hash on the end.  This actually shouldn't be too bad
since you have access to the PortletWindow whose id should match that of
your fragment so you can just tack that on the end of the URL, preceded
by a "#". 

I say the second part is harder than the first, but in the grand scheme
of things, it should not be to difficult depending on your level of
knowledge with Jetspeed 2's API (this is assuming you are using J2 and
not J1).

Disclaimer:
Also, this is all off the top of my head and there is no guarantee it
will work as promised, but it should ;)

Hth,
-scott

> -----Original Message-----
> From: MikeCrosby [mailto:[EMAIL PROTECTED]
> Sent: Thursday, March 22, 2007 11:35 AM
> To: [email protected]
> Subject: Returning browser to portlet location on page
> 
> 
> I have multiple portlets on a single page.  Users have to scroll down
to
> access some of these portlets.
> 
> When an action is triggered within one of the portlets that are
further
> down
> on the page, is there a way to force the browser to scroll down to
where
> the
> portlet is located when the page returns/refreshes?
> --
> View this message in context:
http://www.nabble.com/Returning-browser-to-
> portlet-location-on-page-tf3448355.html#a9617353
> Sent from the Jetspeed - User mailing list archive at Nabble.com.
> 
> 
> ---------------------------------------------------------------------
> 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