On Fri, 04 Feb 2011 18:53:46 -0200, <[email protected]> wrote:

Ok I tried putting the
void onActivate() {
   item = new Item();
}

But now Ajax is acting funny. Is onActivate called every time an Ajax response is requested?

Yes. Every request to the page, AJAX or not, triggers onActivate(). Use onPrepare() instead. And just instantiate another item if the field is null

--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instructor
Owner, Ars Machina Tecnologia da Informação Ltda.
http://www.arsmachina.com.br

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to