I think the web-access is also not uptodate
http://cvs.sourceforge.net/viewcvs.py/wicket-stuff/wicket-contrib-spring/
http://cvs.sourceforge.net/viewcvs.py/wicket-stuff/wicket-contrib-spring/src/java/wicket/contrib/
here i can see the proxy/injection/spring packages, so its up to date.
I was just thinking of an easy way to configure the static instance gotten
from SpringInjector.getInstance (). So I thought that
SpringInjector.getInstance() would call
ApplicationContext.getBean("SpringInjector",SpringInjector.class) and if
there is none return the singelton instance.
but then you have to make the bean name configurable, what if someone has two injectors or wants a different name. it will never end. creating a custom one is trivial because the base class is very simple. a few lines of code later you can have one that works great for you.
An alternative could be that there is a generic injector which loads a
list of IFieldValueFactories from the WebApplication.
once again, i think this is better done in a custom way. its very easy to have something like this:
class InjectorLocator { public static Injector getInjector() { // create and return injector here } }
then instead of using springwebpage create your own that uses the static lookup from injectorlocator to get the injector as opposed to using the default springinjector. this can even allow you to do unit testing on your pages, just have some flag in getInjector() that returns a noop implementation.
-Igor