Oops, sorry, didn't read your entire mail.
However, I do feel that the extra dependency is worth it in the long
run. You very seldom have only one DAO in your application... :) Let's
say you have 50 beans that you want to use in different parts of the
system, the code bloat in the Application class will be quite big.

/Mats

On 1/15/07, Peter Thomas <[EMAIL PROTECTED]> wrote:
> Thanks Mats, I totally agree that that is a pretty clean option.  This does
> mean that you have to include wicket-spring and wicket-spring-annot though -
> which I avoided.
>
> I am trying to figure if the alternate approach is workable and then I do
> feel it is worth adding to the wiki.  Also it may be more appealing to those
> folks who are anti-annotations.  (yes such people exist :)
>
> Regards,
>
> Peter.
>
>
> On 1/15/07, Mats Norén <[EMAIL PROTECTED]> wrote:
> > I personally think it is easer to override the init method of your
> application:
> >
> > protected void init() {
> >         super.init();
> >         addComponentInstantiationListener(new
> SpringComponentInjector(this));
> >         ...
> > }
> >
> > and use the @SpringBean where you want to use your DAO.
> >
> > @SpringBean
> > ContactDao contactDao
> >
> > /Mats
> >
>
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>
> _______________________________________________
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>
>

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to