On Sun, 27 Jan 2013 10:47:08 -0200, John <j...@quivinco.com> wrote:

So, I can pick up the /UserName in my index page and forwards to the required page, although of course that will limit me to only handling 1 parameter linked to 1 page.

Actually, you can have as much parameters as you want: onActivate(EventContext context). This will handle any number of parameters, all them accessed through the context parameter.

I am also finding that resources such as this in my layout.tml
<img src="layout/images/page_bg.png" border="0" width="960" height="799" alt="" style="position:absolute;left:0px;top:149px;"/>
cannot be located when I request pages with params in the url.

This is a common error. Never use relative URLs. Use absolute URLs or, better yet, use the context binding prefix. Example below.

Is there some way to reference the root context in my layout paths?

<img src="${context:/path/to/file.extension}"/>. This will work in all pages and components, no matter the folder your page is (their URL).

--
Thiago H. de Paula Figueiredo

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to