Hi Uwe, thanks for your posting! Is the Injector of type google.guice injector or apache.wicket injector? Where is the method getInjector implemented?
Thanks a lot, Christoph -----Ursprüngliche Nachricht----- Von: [email protected] [mailto:[email protected]] Im Auftrag von Uwe Schäfer Gesendet: Freitag, 21. Mai 2010 08:56 An: [email protected] Betreff: Re: wicket + guice + warp persist: serialization problems Am 18.05.2010 23:41, schrieb Christoph Grün: Hi Christoph > As these classes are injected in Wicket, Wicket tries to serialize them > as well. if you use wicket-ioc to inject these classes into your pages/components, they´re wrapped with a wicket-ioc specific proxy that will not serializale the class, but just the guice key to the injected class and reinject on deserialization. in other words: it´ll work ;) > For example I have the class PoiLoader that is injected in a Wicket page. make sure, you´re using wicket-ioc instead of guice directly to inject into anything you want wicket so serialize down. to remind you: public static void injectMembers(final Object o) { Application application = Application.get(); Injector injector = getInjector(application); new GuiceComponentInjector(application, injector).inject(o); } that´ll be it. cu uwe -- You received this message because you are subscribed to the Google Groups "google-guice" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-guice?hl=en. -- You received this message because you are subscribed to the Google Groups "google-guice" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-guice?hl=en.
