OK, I managed to fix the problem. And here`s how:
I used to have Form class injected in page, then Dao class injected in
form, then hibernate session injected in dao class and that session was
the one causing WicketNotSerializableException. But, when I create the
form with new, it all goes
Thanks, that does offer more flexibility, but it hasn`t solved my
problem yet. Guicier and wicket-guice both return objects with wicket,
not guice proxy when I say something like setResponse(HomePage.class).
If I inject my page object and say, for example,
setResponse(injectedPage) it works
Some things you may look at
IComponentInitalizationListener --
http://wicket.apache.org/apidocs/1.4/org/apache/wicket/application/IComponentInitializationListener.html
IComponentInstantiationListener --
Hi all,
I have guice integrated in my wicket app, and it worked fine until I
tried to inject a page, when I received
java.lang.IllegalArgumentException: Protected method:
checkHierarchyChange(Lorg/apache/wicket/Component;)
Now, I assume this is because of guice integration pitfall
Sorry for spamming, but I remembered another thing I would like to ask
related to this. The reason why I need to inject a page is because I
would like to use guice AOP feature to wrap an interceptor around wicket
pages. If you can recommend another way to do that , it would be helpful
as well.
Take a look at http://code.google.com/p/jolira-tools/wiki/guicier
http://code.google.com/p/jolira-tools/wiki/guicierThere is an extended
integration with Guice.
On Mon, Feb 21, 2011 at 5:16 PM, Dan Griffin dangri...@gmail.com wrote:
Sorry for spamming, but I remembered another thing I would