I get a NotSerializableException when I want to serialize an Object that is currently shown by Vaadin.
The structure is like this:
Vaadin UI <--- serialize /
Spring components are usually not serializable (or should not be serialized at all).
Injecting Spring components in Vaadin components linked to a Vaadin UI is tricky because them should be declared as transient
and re-populated after deserialization..
I wrote a small library jdal-aop to ease the process, using spring-aop serializable proxies.
for example
public class MainLayout extends VerticalLayout {
@Autowired
@SerializableProxy // make this Dao serializable
private CustomerDao customerDao;
}
It could be useful for you.