Em Fri, 02 Oct 2009 05:37:00 -0300, Gunnar Eketrapp
<gunnar.eketr...@gmail.com> escreveu:
Can't find the documentaion on how to pass multiple values in the
context.
Just pass an Object[] or a List as the context.
But I does not work for me. I.e. the activate method that takes two
strings does not get kicked.
Use one onActivate(EventContext e) instead of two. This method will be
invoked with any number of parameters. EventContext has a method that
gives you the number of parameters (int getCount()) e another that returns
the values in the type you want (<T> T get(Class<T> desiredType, int
index)). That's the recommended way of doing it.
--
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