Only o.a.w.Component and o.a.w.Behavior (since 1.5.3) are auto injected.
For anything else you need:

class MyClass {

  @SpringBean private MyBean bean;

  public MyClass() {
    // my stuff

   Injector.get().inject(this);
  }

}

On Thu, Nov 17, 2011 at 4:04 PM, bilgisever <[email protected]> wrote:
> Hello,
> I am trying to integrate BIRT into Spring-Wicket combo.
> *The case:*
> So far, I wrote a class that instantiates report engine and added spring
> annotations. I already have
> /<context:component-scan base-package="blah.blah.andmoreblah" />/
> in bean definition file. Now I can access it via @SpringBean annotation in
> panels-webpages etc... but
> *The Intent:*
> I have some classes (that extends ByteArrayResource) that simply configures
> the report engine to produce desired report.
> *The Problem:*
> On the other hand in the class that extends ByteArrayResource the
> @SpringBean annotated instance comes *null*.
>
> Any insights?
>
> -----
> www.mehmetatas.info
> --
> View this message in context: 
> http://apache-wicket.1842946.n4.nabble.com/SpringBean-scope-where-does-it-start-end-tp4080069p4080069.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]
>
>



-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to