UTILS-17
authorErik Brakkee <erik@brakkee.org>
Sat, 12 Oct 2013 12:09:09 +0000 (14:09 +0200)
committerErik Brakkee <erik@brakkee.org>
Sat, 12 Oct 2013 12:09:09 +0000 (14:09 +0200)
commitec59f519fe8286b7fadad2b7712f6b32f2b31939
treece8c64daf302926abc90ebd4e1827ac6a20ad921
parent514d7b3dd07385a4150514b8fe09ab7c4ff791c3
UTILS-17
CDI integration in wicket can lead to null pointer exceptions after deserialization

The InjectIonBehavior does injection after deserialization only when beforeRender is called, but beforeRender() is not always the first call done after deserialization. Therefore, InjectionBehavior should do injection straight after deserialization (if needed).

Injection is now done at deserialization.
wicket/joe/src/main/java/org/wamblee/wicket/inject/ComponentInstantiationInjector.java
wicket/joe/src/main/java/org/wamblee/wicket/inject/InjectionBehavior.java
wicket/joe/src/test/java/org/wamblee/wicket/inject/InjectionBehaviorTest.java