On Tue, Feb 17, 2009 at 9:30 AM, Angelo Chen <angelochen...@yahoo.com.hk> wrote: > You are correct, in one of my javascript it has a "../images/..", i don't > know why it got called, in that particular page, there is no reference to > that js, commenting it out fixes the problem, but this does bring up another > question, how to put asset:context in a javascript?
One of the options is generating this piece of Javascript in a page or component template. The other is using absolute URLs. > what is event context? something like this: EventContext is an interface from Tapestry: http://tapestry.apache.org/tapestry5/apidocs/org/apache/tapestry5/EventContext.html. You can use it in any event handler method: Object onActivate(EventContext context) { if (context.getCount() == 0) { ....; } } > how to write a matching onPassivate for this? Your onPassivate method can return an Object[] or a List. -- Thiago --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org