Re: Wicket + Guice + Transactional

2014-03-02 Thread Bill Speirs
I create the Dataprovider using Injection, which is why it creates the InterceptorStackCallback field in the object. However it ONLY does this when I mark the methods as @Transactional I don't think this is a Wicket proxy issue, more guice-persist. However, I was wondering if anyone had ran into

Re: Wicket + Guice + Transactional

2014-03-02 Thread uwe schaefer
On 02.03.2014 14:51, Bill Speirs wrote: field in the object. However it ONLY does this when I mark the methods as @Transactional yes, guice creates a proxy if it needs to (and it needs to if it needs to intercept the method call due to @Transactional). the point is here, try wrapping a wicket

Re: Wicket + Guice + Transactional

2014-03-02 Thread William Speirs
Thanks for the idea... it worked! However the only hitch now is that I'm force to use field injection which makes unit testing that much harder (I really like everything constructor injected). I guess what I'd need to do is have my Guice binding be to a @Provides method which constructs a proxy

Re: Wicket + Guice + Transactional

2014-03-01 Thread William Speirs
Does anyone have any thoughts on this? Thanks! Bill- On Wed, Feb 26, 2014 at 11:10 PM, William Speirs wspe...@apache.org wrote: I'm using guice-persist ( http://code.google.com/p/google-guice/wiki/GuicePersist) with Wicket and trying to construct a SortableDataProvider that leverages

Re: Wicket + Guice + Transactional

2014-03-01 Thread u...@codesmell.de
On 03/01/2014 03:48 PM, William Speirs wrote: Does anyone have any thoughts on this? guice-persist https://code.google.com/p/google-guice/wiki/GuicePersist cu uwe - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org

Re: Wicket + Guice + Transactional

2014-03-01 Thread u...@codesmell.de
On 03/01/2014 03:48 PM, William Speirs wrote: Does anyone have any thoughts on this? sorry for the last mail, prematurely sent. uwe - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail:

Re: Wicket + Guice + Transactional

2014-03-01 Thread u...@codesmell.de
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 ProviderP 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

Wicket + Guice + Transactional

2014-02-26 Thread William Speirs
I'm using guice-persist ( http://code.google.com/p/google-guice/wiki/GuicePersist) with Wicket and trying to construct a SortableDataProvider that leverages Guice's @Transactional annotation on the methods that read from the DB. In my page I pass this SortableDataProvider to a DataTable which down