no because the component isnt instantiated so that wount be called. after deserialization that field will be null.
maybe you could bulid in a container/page a deserialize hook and when that is called go over all your components and inject it again johan On Thu, Feb 19, 2009 at 08:41, Martin Sachs <sachs.mar...@gmail.com> wrote: > > Hi > > If we use @SpringBean we have automaticaly a serialized proxy object. Is it > possible to use a transient variable to avoid the serialization at all ? > > public MyPanel extends Panel{ > @SpringBean(name="myserviceBean") > private transient MyServiceInterface service; > ... > } > > > What do we need to inject the service after de-serialization ? We have the > ComponentInstantiationListener, maybe this would work also with transient ? > > > > > Martin > -- > View this message in context: > http://www.nabble.com/Avoid-serialization-troubles-with-static-members-tp22082899p22095373.html > Sent from the Wicket - User mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > >