If you use the built-in link components (Action/Direct/PageLink etc) then
specify the "anchor" parameter like:
<a jwcid="@PageLink" page="Home" anchor="HalfWayDownPage"> .....
It generates the link's URL with "#HalfWayDownPage" appended to it.
(IRequestCycle.activate() expects only a page name. Maybe RedirectException
allows an anchor...)
Br,
Norbi
----- Original Message -----
From: <[EMAIL PROTECTED]>
To: "Tapestry users" <[email protected]>
Sent: Thursday, June 16, 2005 12:04 AM
Subject: link to fragment identifier
In "raw" HTML, I can create an anchor with a name as a fragment
identifier, like this:
<a name="HalfWayDownThePage"
href="http://www.mydns.com/MyNextPage.html">This link goes to
MyNextPage</a>
Then provide a link to that page like this:
<a href="http://www.mydns.com/MyFirstPage.html#HalfWayDownThePage">This
link goes to the middle of MyFirstPage</a>
But when I try to do that in my Java code for Tapestry, it doesn't work:
public void gotoMidOfFirstPageAction(IRequestCycle cycle)
{
cycle.activate("MyFirstPage#HalfWayDownThePage");
}
The above throws an exception.
Is there any way to do this in Tapestry?
Regards,
David Lee Sanford
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]