AW: NullPointerExceptions due to missing Spring constructor injection

2009-02-28 Thread Christian Helmbold
Hi Martjin, it is not possible to compile the code without static. Without static I get the compiler error: cannot reference repository before supertype constructor has been called. But I cannot write public ArticlePage() { super(); this(); } because each of them must be the

Re: AW: NullPointerExceptions due to missing Spring constructor injection

2009-02-28 Thread jWeekend
Christian, It sounds like you're sinking fast into some quicksand you've created in your mind - partly because you don't trust, Wicket, Spring, the Wicket-Spring integration or even Java yet! Your question has nothing to do with Wicket, Spring or Wicket-Spring integration. First of all, forget

AW: NullPointerExceptions due to missing Spring constructor injection - Solution

2009-02-28 Thread Christian Helmbold
Excuse my bit by bit mailings but I don't want to keep the solution secret. The problem with my first try was the missing implicit call to super() within the constructor because I used this() instead. The line InjectorHolder.getInjector().inject(this); is not necessary when I put the code in a

AW: NullPointerExceptions due to missing Spring constructor injection

2009-02-28 Thread Christian Helmbold
factor out an init method that both constructors call. Thanks for you help. I've found this solution with the approved trial-and-error method during you wrote me. Regards Christian - To unsubscribe, e-mail: