Hi all,
I am using Wicket 1.4.8 with Guice 1.0 and Warp Persist/Hibernate. When injecting DAOs directly into Wicket components, it works fine (I inject the DAO Interface). However, I would like to inject them, next to other objects, also in classes that do some business logic. Those classes are themselves injected in Wicket pages. As these classes are injected in Wicket, Wicket tries to serialize them as well. For example I have the class PoiLoader that is injected in a Wicket page. @Singleton public class PoiLoader { private Multimap<Type, Poi> poisRelatedToSpecificTouristType = ArrayListMultimap.create(); protected IVectorDao daoVector; private WorkManager workManager; private Map<Resource, Poi> pois = Maps.newHashMap(); } In this setting, none of the fields can be serialized and throw an - Error serializing object class ecgroup.web.pages.RecommenderPage [object=[Page class = ecgroup.web.pages.RecommenderPage, id = 1, version = 0]] org.apache.wicket.util.io.SerializableChecker$WicketNotSerializableException . I need the Warp Persist Workmanager in order to do some data loading / initialization during Wicket startup. How can I tackle the serialization problems? Thanks a lot, Chris