I too had this problem - I understand why Tapestry does this, as URLs
may be generated by services that contain subpaths, which would then
break relative links to assets. However, I'm not convinced that this is
the correct solution ...

To fix it for my application I implemented my own BaseTagWriter which
does nothing, and then overrode the default one in hivemind.

This works for my app as I know that no URLs will be generated that
break it (yet). 

-----Original Message-----
From: Jason Suplizio [mailto:[EMAIL PROTECTED] 
Sent: 06 December 2005 21:57
To: Tapestry users
Subject: inline page links

I've read a few threads on the subject, but I'm still still confused.
Creating a simple inline page link as such...

<a href="#listPage" title="Go to the List Page section.">List Page</a>
//page html content <a name="listPage">List Page section</a>

...doesn't work since the base is defined by tapestry as:
<base href="http://localhost/appName/dir1/"/>

As a result, the link is "http://localhost/appName/dir1/#attributes";.
The URL of the page this link is found on looks like:

http://localhost/app?component=guidLink&page=dir1/searchPage&service=dir
ect&session=T&sp=S691423423434234+%2863b-234234%29

Obviously, the "http://localhost/appName/dir1/#attributes"; link throws
an
404 error and even if I hardcode my link to be:

hhttp://localhost/appName/dir1/searchPage#detailPages&service=direct&ses
sion=T&sp=S691423423434234+%2863b-234234%29

I lose all the form data that was loaded onto the page. Am I missing
something here? All I want to do is link to a named anchor within the
same page. I shouldn't have to create any javascript or create a java
method to handle this.

Please help!
Jason

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

Reply via email to