yeah, i was tired when i wrote that, because that also doesnt give you a clean way to pass parameters from the constructor into the init. youd have to store them all as field variables so you can get to them later.
what it does solve is it gives you an easier way to set mock objects for the page us
Igor Vaynberg wrote:
i was just falling asleep and thought of something (still sleepy so dont
know if this will make sense in the morning). with all this talk of
testing why not borrow a page from spring's book. have a
IInitializingPage { void afterPropertiesSet(); } and have the injector
chec
i was just falling asleep and thought of something (still sleepy so dont know if this will make sense in the morning). with all this talk of testing why not borrow a page from spring's book. have a IInitializingPage { void afterPropertiesSet(); } and have the injector check for this and call it aft
John Moore wrote:
Jim McLaughlin wrote:
I just started up a project using wicket, spring, and hibernate
following the instructions in
http://www.wicket-wiki.org.uk/wiki/index.php/Spring. While it is not
full step-by-step boiler plate, a half hour to an hour of noodling
around this page and t
I use Proxies. The reason is that I can use them in a DI way.
Lets say I have a Page which uses a CustomerPanel. The CustomerPanel needs
acess to a CustomerDAO. So I just proxy the customerDAO and inject it in
the CustomerPanel ie in the constructor. This way I decouple it from the
Application
Jim McLaughlin wrote:
I just started up a project using wicket, spring, and hibernate
following the instructions in
http://www.wicket-wiki.org.uk/wiki/index.php/Spring. While it is not
full step-by-step boiler plate, a half hour to an hour of noodling
around this page and the wicket-phonebook
John Moore wrote:
Hmm, now I'm really confused! Perhaps I'm asking the wrong question. Is
there an example which shows Wicket working with database access,
handling all the stuff like automatic (declarative) transactions which
Spring does with Hibernate? I like Spring but I'm not sold on it