This should help:

Searching: http://www.google.com/search?q=wicket+springbean
Leads you to this as the first result:
http://cwiki.apache.org/WICKET/spring.html

And this quote: "Using annotation-based approach, you should not worry about
serialization/deserialization of the injected dependencies as this is
handled automatically, the dependencies are represented by serializable
proxies. Also, you should *not* mark you dependency properties transient
because if you do so, they won't be re-initialized upon deserialization."

So, the book is correct - the bean is not directly put into your component -
a serializable proxy is.

On Tue, Feb 24, 2009 at 2:24 PM, Valentine2008
<[email protected]>wrote:

>
> I am confused on this topic.
>
> 1. In "Wicket In Action", this is a statement in "13.2.3 Using proxies
> instead of direct references":
> "Be careful never to hold a reference to a Spring bean in your components."
>
> 2. However, in "13.2.5 Wicket's Spring bean annotations", a reference to a
> Spring bean in a Wicket component  is used: "private DiscountsService
> service; " in a subclass of Panel, which is a Wicket component.
>
> If we could hold a reference to a Spring bean in Wicket components, we have
> to make the Spring bean serializable? Say DiscountsService has to extend
> from Serializable?
>
> -Valentine
> --
> View this message in context:
> http://www.nabble.com/Hold-a-reference-to-a-Spring-bean-in-Wicket-components-tp22189818p22189818.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>


-- 
Jeremy Thomerson
http://www.wickettraining.com

Reply via email to