On 03/01/2014 03:48 PM, William Speirs wrote: > >> I'm using guice-persist
how do you create the dataprovider? did you try to @inject a Provider<P> instead of P into your component? note that wicket proxies are just created for things injected by the framework into components. if you need to wrap something manually (discouraged, i guess) you can do smth along these lines: LazyInitProxyFactory.createProxy(Class<?> type, new IProxyTargetLocator(){... go to guice-injector and fetch the instance ... }); or have a look at org.apache.wicket.injection.Injector which you can grab by using Injector.get().inject(objectToInjectInto) which creates the necessary proxies. hope it helps, uwe --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org