You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Steven <sr...@audaxis.com> on 2005/02/10 15:48:38 UTC
Simple HREF question
Hi,
I would like to have a simple url link to a page from my tapestry
application.
So i use something like that:
<a href="/help/ch1.html"
jwcid="@contrib:PopupLink" '><img jwcid="@Image"
image="ognl:assets.help" alt="Help" /></a>
It works, except that the '/' in my URL are replaced by char %2F and
than all the link on my page are false.
Does someone know a fix for that ? Or is there an easier way to do such
links ?
Thx a lot for your help
Steven
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
Re: Simple HREF question
Posted by Kent Tong <ke...@cpttm.org.mo>.
Steven <sre <at> audaxis.com> writes:
> I would like to have a simple url link to a page from my tapestry
> application.
>
> So i use something like that:
> <a href="/help/ch1.html"
> jwcid=" <at> contrib:PopupLink" '><img jwcid=" <at> Image"
> image="ognl:assets.help" alt="Help" /></a>
You should a PageLink component and bind a PopupLinkRender
object to the render parameter.
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
Re: Simple HREF question
Posted by Shing Hing Man <ma...@yahoo.com>.
If you look at the source code of Java class
PopupLink.java
associated with component @contrib:PopupLink,
you will find that href is URL encoded before it is
outputted (please see the method getHref() in
PopupLink.java).
To output the href as it is given, you could modify
the method getHref.
In fact, I have done it myself. If you are interested,
I could email you my component.
Shing
--- Steven <sr...@audaxis.com> wrote:
> Hi,
>
> I would like to have a simple url link to a page
> from my tapestry
> application.
>
> So i use something like that:
> <a href="/help/ch1.html"
>
> jwcid="@contrib:PopupLink" '><img jwcid="@Image"
> image="ognl:assets.help" alt="Help" /></a>
>
> It works, except that the '/' in my URL are replaced
> by char %2F and
> than all the link on my page are false.
>
>
> Does someone know a fix for that ? Or is there an
> easier way to do such
> links ?
>
> Thx a lot for your help
>
> Steven
>
>
>
>
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
> tapestry-user-help@jakarta.apache.org
>
>
=====
Home page :
http://uk.geocities.com/matmsh/index.html
___________________________________________________________
ALL-NEW Yahoo! Messenger - all new features - even more fun! http://uk.messenger.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org