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