I have a JSF Beans structure of this sort:
@ManagedBean
@ViewScoped
public class ViewBeany implements Serializable {
....
@ManagedProperty(value='#{sessionBeany})
transient private SessionBeany sessionBeany;
...
public getSessionBeany() { ... };
public setSessionBeany(SessionBeany sessionBeany) { ... };
}
The reason for the transient
is that the session bean has some non-Serializable members and cannot be made Serializable.
Will this work?
If not, How can I solve the problem of not being able to serialize SesionBeany
but having to keep it as a managed property under a view scoped bean?
Thanks!
STATE_SAVING_MODE
toserver
and avoid having to serialize your view to the client altogether – Reina