-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Ah, I see - thanks!
Am 06.05.2012 14:37, schrieb Thiago H. de Paula Figueiredo: > On Sun, 06 May 2012 02:41:13 -0300, Arno Haase > <arno.ha...@haase-consulting.com> wrote: > >> PS: What's the 'relative assets pitfall'? > > Imagine you have a page which URL is /view/edit (the URL itself > doesn't matter). Now imagine that you add an image to your page, it > doesn't matter <img> or CSS, but I'll use <img> as an example: > <img src="images/background.jpg"/>. This is a relative URL, so the > browser will concatenate the page URL with image URL: > /view/edit/images/background.jpg. Tapestry interprets this as > requesting the /view/edit page with 'images' and 'background.jpg' > as the page activation context and the page onActivation() method > is invoked, which is not what we want. Solution: use absolute > paths: <img src="/images/background.jpg"/> > -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk+mgmMACgkQbmZsMyUPuXRCtgCgv71o2h7oiT3V93PCf+LlwBEb FuYAoIyIbv2xng5PPkR4zeWMgwNtOrEI =SpM1 -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org