Re: [Wicket-user] Re: Wicket, Spring and Hibernate

2005-12-08 Thread Igor Vaynberg
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

[Wicket-user] Re: Wicket, Spring and Hibernate

2005-12-08 Thread Jim McLaughlin
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

Re: [Wicket-user] Re: Wicket, Spring and Hibernate

2005-12-08 Thread Igor Vaynberg
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

[Wicket-user] Re: Wicket, Spring and Hibernate

2005-12-07 Thread Jim McLaughlin
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

Re: [Wicket-user] Re: Wicket, Spring and Hibernate

2005-12-07 Thread Christian Essl
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

Re: [Wicket-user] Re: Wicket, Spring and Hibernate

2005-12-07 Thread John Moore
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

[Wicket-user] Re: Wicket, Spring and Hibernate

2005-12-07 Thread Jim McLaughlin
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