Nevermind, I've found it... I was using an AbstractFormController and setting the commandName, and that was causing my manually set bean to be overwritten.
Type: Posts; User: quartz; Keyword(s):
Nevermind, I've found it... I was using an AbstractFormController and setting the commandName, and that was causing my manually set bean to be overwritten.
I'm using JDK 1.5 + Spring 1.2. The exception goes below (sorry, I forgot earlier):
org.springframework.beans.InvalidPropertyException: Invalid property 'contacts[0]' of bean class...
Hi, I've been getting an IndexOutOfBoundException on accessing a collection in one of my form beans.
The formbean is about this:
class Provider {
...
private List contacts = new...
Exactly, sorry for missing such an important fact too! :)
Finally, he doesn't explain why "...(Dependency Injection) tends to be hard to understand and leads to problems when you are trying to debug." He just says it, no backing up whatsoever. He DOES...
It took me a while, but I finally read it...
Martin Fowler's article is horrible! At the company I work the "service locator pattern" is used instead of dependency injection. Bad Bad Bad.
As...