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: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to