I use this with good results: @Inject("spring:somebean") private SomeBean somebean;
----- Original Message ----- From: "mateamargo" <[EMAIL PROTECTED]> To: users@tapestry.apache.org Sent: 25 April 2007 18:35:21 o'clock (GMT) Europe/London Subject: InjectSpring and NullPointerException I don't know if this should be asked here or in the SpringFramework forum. I have a bean defined and I need to inject it into a property inside a class that extends BasePage. But when I read this property I get a NullPointerException. Before that, I have tried without providing an implementation for that setter (leaving it asbtract), but Tapestry complains. So, what is the right thing to do? @InjectSpring("somebean") public abstract void SetSomething(); or @InjectSpring("somebean") public void SetSomething(SomeObject so){ this.so = so; } Thanks. -- View this message in context: http://www.nabble.com/InjectSpring-and-NullPointerException-tf3646961.html#a10185808 Sent from the Tapestry - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]