On 8/23/07, Jan Kriesten <[EMAIL PROTECTED]> wrote: > > > hi matej, hi johan, > > > Why can't you just implement read/writeObject on your page/component? > > that would be an effort... here a listview, there a link and over there > another > image... > > that way i loose all the benefits of using injection - i build new logic > in the > components which i just wanted to get rid of. > > > Or make the fields itself not transient, but a proxy that has a > transient > > field and the proxy can deserialize and inject itself again (see > wicket-ioc > > project) > > possible, but that reminds me on the 'XYService.getInstance()' usage in > the > times before IoC. it adds another indirection which makes should-be-easy > things > more complex. instead of being able to just inject the right class > instances, i > have to use proxies (so being on the save side when changing > classes/implementations break serialization).
really, so this is too complicated? public mypanel extends panel { @SpringBean private Service service; ... } -igor regards, --- jan. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >