Ah ok yes, nothing to see with tapestry. Many of the url are entered by
user and then many of them don't have the http:// appended at beginning. I
need to rewrite them, or is there a way in html to make all <a href> tags
to be read as absolute by the browser ?


2014-09-09 15:12 GMT+02:00 Thiago H de Paula Figueiredo <thiag...@gmail.com>
:

> On Tue, 09 Sep 2014 10:03:26 -0300, squallmat . <squall...@gmail.com>
> wrote:
>
>  Hi,
>>
>
> Hi!
>
>
>
>> I have url stored in DB, like "www.google.com" and I just pass them in my
>> template to an href attribute, like this :
>>
>> <t:Loop t:source="urls" t:value="url">
>> - <a href="${url}" target="_blank">${url}</a>
>> <br />
>> </t:Loop>
>>
>> The value of ${url} in the href attribute is rewrote to concatenate the
>> actual displayed page url. Why is there url rewriting here ? And how can
>> I disable it ?
>>
>
> Tapestry itself doesn't rewrite anything you include in the template
> through ${} expansions. Have you checked what's really in the generated
> HTML for that attribute or you just hovered the mouse over it? Remember:
> browsers usually consider anything which doesn't start with 'http://',
> 'https://' or '/' as local, relative URLs.
>
> --
> Thiago H. de Paula Figueiredo
> Tapestry, Java and Hibernate consultant and developer
> http://machina.com.br
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>

Reply via email to