Santiago Fernández wrote:
> 
> Yes, you need a .page file, like every tapestry page. Or set the property
> "
> org.apache.tapestry.page-class-packages" in .application file.
> 
> Browse into the example:
> http://www.google.com/codesearch?hl=en&q=show:W7d5X-mFWSg:dORw9TpfYA4:F3TWNBX8eZ4&sa=N&ct=rd&cs_p=http://howardlewisship.com/downloads/tapestry-javaforge/tapestry-spring-1.0.0-src.zip&cs_f=tapestry-spring-1.0.0/src/test/webapp/WEB-INF/app.application
> 

I have used other classes without a .page file without problems.
But this I need a property to be injected by Spring and I'm not able to do
it.

The exception says that cannont read the "persons" OGNL:

<tr jwcid="@For" source="ognl:persons" value="person" element="tr">

The method getPersons:

public List<Person> getPersons(){
    return PersonDAO.getAll();
}

This is because PersonDAO is null, and this is what I need to be injected by
Spring.
-- 
View this message in context: 
http://www.nabble.com/InjectSpring-and-NullPointerException-tf3646961.html#a10187525
Sent from the Tapestry - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to