Re: [Wicket-user] wicket-spring-annot: behavior when bean not found...

2006-09-03 Thread Igor Vaynberg
i changed it so that the locators are always tested now, so it will fail on injection. i dont know if we need mandatory or not.-IgorOn 9/3/06, Erik Brakkee <[EMAIL PROTECTED]> wrote: Erik Brakkee wrote:> 2. The @SpringBean annotation should be extended with a 'mandatory'> attribute, defaulting to

Re: [Wicket-user] wicket-spring-annot: behavior when bean not found...

2006-09-03 Thread Erik Brakkee
Erik Brakkee wrote: > 2. The @SpringBean annotation should be extended with a 'mandatory' > attribute, defaulting to false. If the bean is mandatory, then an > exception should be thrown by the injector in case a bean can not be found. > Thinking about it some more, I think, the default should b

[Wicket-user] wicket-spring-annot: behavior when bean not found...

2006-09-03 Thread Erik Brakkee
Hi, Just to experiment, I removed a bean definition from my spring configuration files but kept the @SpringBean annotation. What happened was that a non-null object was still injected (a proxy). Only after dereferencing it a Null pointer exception occurred. How about the following behavior to ma