I'm trying to work with a wicket and a graph, more specifically inserting a facade (or controller, whatever) onto the web page with a pattern. The problem is that I can not do any injection other than injection on the box on the web page. If I try to use setter injection, the setter just doesn't get called. Embedding a constructor in a web page is not possible (or I did not find how to do this).
Thus, I seem to be left with the injection field as the only injection opportunity on the web page.
Can someone, first of all, confirm that this is correct? It seems that I found on the apache site that the setter injection does not work, as with gate 1.5 (I am 6 by the way), but did not find more information about this.
Secondly, if, indeed, it is only possible to overlay a field on a web page, how can I enter a field into a form purely unit test? (I think about the mock test, all I need to know is that the corresponding facade is correctly called with the correct arguments after clicking the button, the facade itself can be tested in another unit test).
Didn't ship the code because the question seems pretty simple. If necessary, I will add some fragments
Kasper
source share