You need to use the Wicket injector for guice. That will create a serializable proxy for the service. Guice itself doesn't know about Wicket, so you can't expect it to magically work.
Martijn On Tue, Jun 1, 2010 at 12:05 PM, Joseph Pachod <j...@thomas-daily.de> wrote: > hi > > In a form, I'm injecting a factory through guice. The factory's interface > doesn't extend Serializable, as well as the implementation. > > Then the SerializableChecker throws > org.apache.wicket.util.io.SerializableChecker$WicketNotSerializableException: > Unable to serialize class: > com.softculture.core.dataseries.morphia.wicket.DefaultDecoratorFactory > > I was assuming that such a class wouldn't need to be Serializable, since it > was never serialized done thanks to guice injection... Am I wrong ? > > thanks in advance > > best regards > -- > > Joseph Pachod > IT > THOMAS DAILY GmbH > Adlerstraße 19 > 79098 Freiburg > Deutschland > T + 49 761 3 85 59 410 > F + 49 761 3 85 59 550 > E lar...@thomas-daily.de > www.thomas-daily.de > > Geschäftsführer/Managing Directors: > Wendy Thomas, Susanne Larbig > Handelsregister Freiburg i.Br., HRB 3947 > > > Registrieren Sie sich unter https://www.thomas-daily.de/user/sign-in für die > TD Morning News, eine kostenlose Auswahl aktueller Themen aus TD Premium, > morgens ab 9:15 in Ihrer Mailbox. > > Aktuelle Presseinformationen für die TD Morning News und TD Premium nimmt > unsere Redaktion unter redakt...@thomas-daily.de entgegen. > Redaktionsschluss für die TD Morning News ist täglich um 8:45. > > Register free of charge at https://www.thomas-daily.de/user/sign-in to have > the TD Morning News, a selection of the latest topics from TD Premium, > delivered to your mailbox from 9:15 every morning. > > Our editorial department receives the latest press releases for the TD > Morning News and TD Premium at redakt...@thomas-daily.de. The editorial > deadline for the TD Morning News is 8.45am daily. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.4 increases type safety for web applications Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.4.8 --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org