Thiago H. de Paula Figueiredo wrote:


Very Tapestry-y. :)


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.

Yes, in fact the problem of the page redisplaying and the image not being displayed was exactly this. I moved the image file to classpath:<project.stuff>/images/logo.gif and changed the href in the tml file to ${asset:images/logo.gif} and it all started to work.


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.
Yes, again. Did this, understood what was happening with the image and saw the benefit of this approach..

Once again, thanks Thiago!

Regards

Alan Chaney



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

Reply via email to