On Tue, Feb 17, 2009 at 10:16 AM, Angelo Chen <angelochen...@yahoo.com.hk> wrote:
> Hi Thiago, Hi, Angelo! > Thanks for the tip, never knew there is this EventContext, is following > onPassivate correct: You cannot return an EventContext in the onPassivate method. You don't even need to return the same type you received in onActivate() in onPassivate(). If you want to return more than one paramenter in onPassivate(), return a List or an Object[]. > What's the advantage of using EventContext compared to Object[], I know it > is neat, any other reason? It is type safe: take a look at its get() method. It uses the Tapestry coercion feature to convert the value to the type you want. With an Object[], all its elements are Strings and you have to do the conversions yourself. -- Thiago --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org