This code works for me: public abstract class Home extends BasePage {
... @InjectSpring("someBean") public abstract SomeBean getSomeBean(); ... Check this code: http://www.google.com/codesearch?hl=en&q=+doc:9AU8EeUPIqc+%40InjectSpring%5C(+show:9AU8EeUPIqc:RIIGoLvmuBc:IOb23uxRU70&sa=N&cd=3&ct=ri&cs_p=http://howardlewisship.com/downloads/tapestry-javaforge/tapestry-spring-1.0.0-src.zip&cs_f=tapestry-spring-1.0.0/src/test/java/com/javaforge/tapestry/spring/pages/Home.java#a0 Saludos 2007/4/25, mateamargo <[EMAIL PROTECTED]>:
Santiago Fernández wrote: > > Hi, mateamargo. The getter > > @InjectSpring("somebean") > public abstract SomeBean getSomething(); > > works fine... but be careful when you call getSomething()... if you call > this getter inside an "initialize()" method, you will get an exception, > because the property isn't injected yet... You must invoque this > property from a listener, or PageAttachListener.pageAttached().. > > Saludos desde Argentina :-) > > Ok, but If use an abstract method Tapestry complains saying that the method hasn't an implementation. Saludos che. -- View this message in context: http://www.nabble.com/InjectSpring-and-NullPointerException-tf3646961.html#a10186596 Sent from the Tapestry - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]