On Thu, Oct 7, 2010 at 9:13 AM, Leszek Gawron <lgaw...@apache.org> wrote: > AFAIR the once the bean is looked up from spring it is being cached by > AnnotProxyFieldValueFactory itself. > > So using prototype scope will not work anyway: either way you always get a > fresh bean (so you cannot keep state) or you will always get the same bean > (even worse if the bean is stateful). >
The code specifically checks to see if the bean is a singleton before it caches it. Non-singleton beans should not be cached: http://svn.apache.org/repos/asf/wicket/trunk/wicket-spring/src/main/java/org/apache/wicket/spring/injection/annot/AnnotProxyFieldValueFactory.java Search for "isSingletonBean" --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org