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