this might be due to the fact that wicket performs a test-lookup on the bean
to make sure its there and if not fail early. that might be what is causing
the problem. will need to have a look.
see AnnotProxyFieldValueFactory.testLocator(). that was ok for singleton
beans, but probably not ok for prototype beans if you really care about how
many are created. so we might have to remove that failfast functionality.
-igor
On 6/4/07, Daniel Stoch <[EMAIL PROTECTED]> wrote:
It seems that in Wicket 1.3 session and request scoped beans work ok.
But I've done only a very simple tests.
PS. The problem with prototype scoped beans (multiple instance
creation) still exists.
Daniel
On 6/1/07, Daniel Stoch <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I want to inject a spring bean with scope="session" into my page using
> @SpringBean annotation. I have added into my web.xml declaration:
> <listener>
> <listener-class>
>
org.springframework.web.context.request.RequestContextListener
> </listener-class>
> </listener>
> but it seems that this bean is still created once for whole
> application (like a singleton).
> Does session and request scoped beans are supported by
> wicket-spring-annot (and of course wicket-spring) library or have I
> missed something in my configuration?
>
> PS. Singletons and prototypes works ok. I'm using Wicket 1.2.6.
>
> Best regards,
> Daniel Stoch
>
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user