Here's a strange error I got during context initialization on a CustomDateEditor bean.
The error I got is with the second contructor argument:Code:<bean id="customDateEditor" class="org.springframework.beans.propertyeditors.CustomDateEditor"> <constructor-arg><ref local="dateFormatSql"/></constructor-arg> <constructor-arg><value>true</value></constructor-arg> </bean>
Well I did specify the correct constructor arguments right?Code:org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'customDateEditor' defined in resource [/WEB-INF/applicationContext.xml] of ServletContext: Unsatisfied dependency expressed through constructor argument with index 1 of type [boolean]: Did you specify the correct bean references as generic constructor arguments?


Reply With Quote
). In addition the above values can be resolved by specifying a type. E.g.