Oh God! Yes , I messed up with interfaces: too much time using PHP Thanks Thiago Il 14/11/2014 20:47, Thiago H de Paula Figueiredo ha scritto: > On Fri, 14 Nov 2014 15:27:51 -0200, Ivano Luberti > <lube...@archicoop.it> wrote: > >> So B is created in the first page but not bound to the session while >> some way is visible across pages >> While A is created at server start-up (why?) but is not visible in >> the page. >> If from web.xml I remove >> >> <listener> >> <listener-class>it.archicoop.met.obliterazione.beans.User</listener-class> >> >> </listener> > > If you declare your User class like this, for the listening itself, > the servlet container will create a single User instance and invoke > its methods. This is completely unrelated to Tapestry's @SessionState. > Why are you doing that? Using the same class for this listener *and* > as an @SessionState field makes no sense at all, at least at first. > > Shouldn't your User class implement HttpSessionBindingListener instead? >
-- ================================================== dott. Ivano Mario Luberti Archimede Informatica societa' cooperativa a r. l. Sede Operativa Via Gereschi 36 - 56126- Pisa tel.: +39-050- 580959 tel/fax: +39-050-9711344 web: www.archicoop.it ================================================== --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org