Hi MateAmargo just remove the property from the page definition let the ".page" empty <page-specification class="com.foo.PersonsList"> </page-specification>
Saludos. Alejandro. On 4/25/07, mateamargo <[EMAIL PROTECTED]> wrote:
Jessek wrote: > > Where are you getting that local member from ? You can't have anything > injected and used as a local member because the method you add the > annotation to will likely be replaced...So if you've been trying to set a > member and seeing it null that's why - it's not actually using your method > to inject it. > I just typed by memory, in fact it is: public List<Person> getPersons(){ return getPersonDAO().getAll(); } @InjectSpring("personDAObean") public abstract PersonDAO getPersonDAO(); I have added a .page file for this class with this: <?xml version="1.0"?> <!DOCTYPE page-specification PUBLIC "-//Apache Software Foundation//Tapestry Specification 4.0//EN" "http://tapestry.apache.org/dtd/Tapestry_4_0.dtd"> <page-specification class="com.foo.PersonsList"> <property name="personDAO" /> </page-specification> -- View this message in context: http://www.nabble.com/InjectSpring-and-NullPointerException-tf3646961.html#a10187850 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]