Em Fri, 02 Oct 2009 18:15:56 -0300, Alan Chaney
<a...@compulsivecreative.com> escreveu:
Sorry, more newbie questions.
I want to have URLs following a "restful" form, eg:
<website>/stuff/xxx/yyy
Very Tapestry-y. :)
And in fact it does. But then the same method is called again with the
value "layout" and the page redisplays. "layout" is the name of my
Layout (well, doh!) and when it redisplays the logo which is part of the
layout.tml file disappears...
Don't use relative paths to CSS/JavaScript/images/anything. By the way,
the recommended way of doing it is using ${asset:} expressions
(${asset:context/images/image.jpg, for example). This is the most common
cause for problems like yours.
Another advice: instead of onActivate(String s) or onActivate(String s1,
String s2), the best way to receive the context parameters is to have a
single onActivate(EventContext context) method. It will be called
regardless of the number of parameters and the EventContext variable will
give you the number of parameters and their values.
--
Thiago H. de Paula Figueiredo
Independent Java consultant, developer, and instructor
http://www.arsmachina.com.br/thiago
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org