Em Thu, 03 Sep 2009 08:40:53 -0300, Martin Torre Castro <mad...@hotmail.com> escreveu:

Thank you very much Thiago.

You're welcome!

EventContext is working ok when I'm sending data from the page to the same page. But if I send data from another page and I'm setting the EventContext parameters as before is show an error:

method onActivate signature: (Lorg/apache/tapestry/EventContext;)V) Illegal constant pool index

This is a compilation or class manipulation issue. Try recompiling your application. It looks like you're trying to receive an array of EventContext in your onActivate method: that's not correct. It should be onActivate(EventContext context). The context value can't be an EventContext (something I guess it's fixed in the next Tapestry version).

Do I have to set the onActivate parameters one by one as I usually did or is better to make a setContext method in the page receiving the data?

If you use a method other than onActivate to recevie data, it's a valid choice, but you're not using the activation context.

--
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

Reply via email to