Oops! Yeah non-component classes aren't injected automatically. In this case, you might be able to use @configurable, as long as you don't need to pass the reference to anyone else. But, what you're doing might be easier.
On 7/23/08, David Nedrow <[EMAIL PROTECTED]> wrote: > > On Jul 23, 2008, at 3:23 PM, James Carman wrote: > >> Try downloading my example code from: >> >> http://svn.carmanconsulting.com/public/wicket-advanced/trunk/ > > James, > > I've been using your examples and they've been really helpful, with > the exception of this. ;) > > As it turns out, Landry provided the answer re: InjectorHolder. The > class that wasn't working didn't extend Component, so the injection > didn't work. > > Adding InjectorHolder.getInjector().inject(this) to the init of my > calling class fixed it up. > > The class in question was basically a utility class that inserts > initial data into my database. > > Might be worth putting something similar into your example. Give my > boneheadedness meaning, please. ;) > > -David > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Sent from my mobile device --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
