Hi,

On Fri, Sep 27, 2013 at 8:41 AM, miguel <[email protected]> wrote:

> how do you instantiate ClsDb? I don't see a @Component/@Service/etc
> annotation on it so my guess is you use something like...
>
> clsdb = new ClsDb();
> clsdb.save();
>
> You need to have the class creaed by spring's bean factory or injected by
> wicket's component instantiation listener.
>

If you create it with "new ClsDb" then you can do:

public ClsDb() {
    ....
    Injector.get().inject(this);
}


>
>
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/wicket-autowired-annotation-tp4661529p4661543.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

Reply via email to