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
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
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
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
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
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:
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
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