Hello,
There's a problem with injection when onSubmit of the Form is invoked.
Scenario is the following:
Wicket (6.20) page or panel with the field "manager" with @Inject annotation.
Form is created as an anonymous class in onInitialize method of the page. onSubmit method of the form then refers to manager field of the parent page.
Occasionally access to "manager" failed with NPE.
So far the solution was to use: Injector.injectMembers(manager); in onSubmit method.
But there's probably something I'm missing.
Would appreciate help/advice.
Thanks, Stepan.